(svn r17869) -Codechange: don't create OnScroll() event for zero delta

This commit is contained in:
smatz 2009-10-25 17:01:45 +00:00
parent 4dd587345d
commit a558159faa
1 changed files with 1 additions and 1 deletions

View File

@ -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;