From b936f094d1d3d0ded94452561848dfac6228318b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 4 Nov 2012 10:11:30 -0500 Subject: [PATCH] st-scroll-view: Throw away emulated pointer events These are sent by the X server and have large deltas. They really should be filtered out by Clutter (or the X server) somehow, but we don't have the means to do that yet. https://bugzilla.gnome.org/show_bug.cgi?id=687573 --- src/st/st-scroll-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index e4b3372b2..caa627a5a 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -731,6 +731,9 @@ st_scroll_view_scroll_event (ClutterActor *self, if (!priv->mouse_scroll) return FALSE; + /* throw away this garbage event. we want smooth scrolling. */ + if (clutter_event_is_pointer_emulated ((ClutterEvent *) event)) + return TRUE; switch (event->direction) {