fix: XWindowScreen, do not send a scroll delta for 0

fixes: #9477
This commit is contained in:
sithlord48
2026-02-16 17:55:06 -05:00
committed by Nick Bolton
parent 1ca8695659
commit 4c7f546c60

View File

@ -815,7 +815,7 @@ void XWindowsScreen::fakeMouseWheel(ScrollDelta delta) const
}
// send as many clicks as necessary
while (axisDelta >= 0) {
while (axisDelta > 0) {
XTestFakeButtonEvent(m_display, button, True, CurrentTime);
XTestFakeButtonEvent(m_display, button, False, CurrentTime);
axisDelta -= s_scrollDelta;