[gtk+] scrolledwindow: Ensure the animation is cancelled on arriving scroll events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scrolledwindow: Ensure the animation is cancelled on arriving scroll events
- Date: Thu, 16 Apr 2015 16:45:32 +0000 (UTC)
commit 6d19162c431fc40972165cf2a2d5e0c591ca696f
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]