diff --git a/src/st/st-scroll-bar.c b/src/st/st-scroll-bar.c index d5d526494..e2c09203e 100644 --- a/src/st/st-scroll-bar.c +++ b/src/st/st-scroll-bar.c @@ -469,7 +469,8 @@ st_scroll_bar_scroll_event (ClutterActor *actor, ClutterTextDirection direction; ClutterScrollDirection scroll_dir; - if (clutter_event_is_pointer_emulated ((ClutterEvent *) event)) + if (!!(clutter_event_get_flags ((ClutterEvent *) event) & + CLUTTER_EVENT_FLAG_POINTER_EMULATED)) return TRUE; direction = clutter_actor_get_text_direction (actor); diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index 9f667e545..764065b60 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -770,7 +770,8 @@ st_scroll_view_scroll_event (ClutterActor *self, if (!priv->mouse_scroll) return FALSE; - if (clutter_event_is_pointer_emulated ((ClutterEvent *) event)) + if (!!(clutter_event_get_flags ((ClutterEvent *) event) & + CLUTTER_EVENT_FLAG_POINTER_EMULATED)) return TRUE; direction = clutter_actor_get_text_direction (self);