mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r17869) -Codechange: don't create OnScroll() event for zero delta
This commit is contained in:
parent
4dd587345d
commit
a558159faa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue