mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 02:19:09 +00:00
(svn r17869) -Codechange: don't create OnScroll() event for zero delta
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user