[gtk+/gtk-3-16] scrolledwindow: Ensure the animation is cancelled on arriving scroll events



commit ffd944f1c1178f27e75f3d2a02362fe053953a3d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Apr 16 18:40:32 2015 +0200

    scrolledwindow: Ensure the animation is cancelled on arriving scroll events
    
    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 031d198..a5ceea8 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]