Don't wait when scrolling with middle click

This commit is contained in:
Krzosa Karol
2026-01-02 23:23:44 +01:00
parent 1767b2767e
commit da96fb847c
2 changed files with 3 additions and 3 deletions

View File

@@ -724,7 +724,7 @@ void MainLoop() {
} }
WaitForEventsState = WaitForEvents; 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; WaitForEventsState = false;
} }

View File

@@ -41,10 +41,10 @@ struct Window {
}; };
struct Scroller { struct Scroller {
Rect2 rect; Rect2 rect;
double begin; double begin;
double end; double end;
Int line_count; Int line_count;
}; };
inline bool operator==(WindowID a, WindowID b) { return a.id == b.id; } inline bool operator==(WindowID a, WindowID b) { return a.id == b.id; }