diff --git a/src/text_editor/text_editor.cpp b/src/text_editor/text_editor.cpp index 46e9597..f55e5c7 100644 --- a/src/text_editor/text_editor.cpp +++ b/src/text_editor/text_editor.cpp @@ -724,7 +724,7 @@ void MainLoop() { } WaitForEventsState = WaitForEvents; - if (IsDocumentSelectionValid() || IsScrollbarSelectionValid() || ActiveProcesses.len || dont_wait_until_resolved) { + if (IsDocumentSelectionValid() || IsScrollbarSelectionValid() || ActiveProcesses.len || dont_wait_until_resolved || MouseMiddleAnchor.x != 0) { WaitForEventsState = false; } diff --git a/src/text_editor/window.h b/src/text_editor/window.h index 271622d..fbfc24c 100644 --- a/src/text_editor/window.h +++ b/src/text_editor/window.h @@ -41,10 +41,10 @@ struct Window { }; struct Scroller { - Rect2 rect; + Rect2 rect; double begin; double end; - Int line_count; + Int line_count; }; inline bool operator==(WindowID a, WindowID b) { return a.id == b.id; }