forked from AuroraMiddleware/gtk
gdk: deal with GDK_SMOOTH_SCROLL events as not having a direction
gdk_event_get_scroll_direction() will return FALSE on these, so gdk_event_get_scroll_deltas() has to be used to retrieve dx/dy
This commit is contained in:
parent
0efbbc6435
commit
f47e470e58
@ -1196,7 +1196,10 @@ gdk_event_get_scroll_direction (const GdkEvent *event,
|
||||
switch (event->type)
|
||||
{
|
||||
case GDK_SCROLL:
|
||||
dir = event->scroll.direction;
|
||||
if (event->scroll.direction == GDK_SCROLL_SMOOTH)
|
||||
fetched = FALSE;
|
||||
else
|
||||
dir = event->scroll.direction;
|
||||
break;
|
||||
default:
|
||||
fetched = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user