Don't wait when scrolling with middle click
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user