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:
Carlos Garnacho 2012-01-23 23:51:24 +01:00 committed by Matthias Clasen
parent 0efbbc6435
commit f47e470e58

View File

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