diff options
-rw-r--r-- | src/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index fc8e605eb..3ba3866e4 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1960,7 +1960,7 @@ static bool HandleViewportScroll() } /* Create a scroll-event and send it to the window */ - w->OnScroll(delta); + if (delta.x != 0 || delta.y != 0) w->OnScroll(delta); _cursor.delta.x = 0; _cursor.delta.y = 0; |