From a558159faa10e66f27246f9fcd2defc717b05567 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 25 Oct 2009 17:01:45 +0000 Subject: (svn r17869) -Codechange: don't create OnScroll() event for zero delta --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2