scrolledwindow: Ensure the animation is cancelled on arriving scroll events
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 16 Apr 2015 16:40:32 +0000 (18:40 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 16 Apr 2015 16:40:32 +0000 (18:40 +0200)
When the scrolledwindow receives scroll events, it ensures the timeout to
maybe start the "snap back to edges" animation is reset, but it does nothing
about the animation source. It must be reset just the same, to maybe be
started after the timeout fires up.

gtk/gtkscrolledwindow.c

index 031d19881afe56d9789197a616bd3171ed77d8fb..a5ceea81e01cb8b21f9f7d411c43c84c411514f6 100644 (file)
@@ -3055,6 +3055,7 @@ gtk_scrolled_window_scroll_event (GtkWidget      *widget,
 
   if (handled)
     {
+      gtk_scrolled_window_cancel_deceleration (scrolled_window);
       gtk_scrolled_window_invalidate_overshoot (scrolled_window);
 
       if (priv->scroll_events_overshoot_id)