[libhandy/wip/exalm/leaflet-fixes: 16/16] stackable-box: Stop transition when starting a swipe



commit 3851d6561354e1cba856af421e13ad7a9d57c77b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri May 29 14:59:57 2020 +0500

    stackable-box: Stop transition when starting a swipe
    
    This is a regression from e60a39eb186de6ee881102b62b389ab7deba5c1d
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 src/hdy-stackable-box.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/hdy-stackable-box.c b/src/hdy-stackable-box.c
index 346cc924..56020304 100644
--- a/src/hdy-stackable-box.c
+++ b/src/hdy-stackable-box.c
@@ -3199,6 +3199,8 @@ hdy_stackable_box_begin_swipe (HdyStackableBox        *self,
   self->child_transition.swipe_direction = direction;
 
   if (self->child_transition.tick_id > 0) {
+    gtk_widget_remove_tick_callback (GTK_WIDGET (self->container),
+                                     self->child_transition.tick_id);
     self->child_transition.tick_id = 0;
     self->child_transition.is_gesture_active = TRUE;
     self->child_transition.is_cancelled = FALSE;


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