diff options
-rw-r--r-- | gtk/gtkswitch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c index 829bbb38e4..002968e14e 100644 --- a/gtk/gtkswitch.c +++ b/gtk/gtkswitch.c @@ -208,6 +208,7 @@ gtk_switch_multipress_gesture_pressed (GtkGestureMultiPress *gesture, gtk_widget_get_allocation (GTK_WIDGET (sw), &allocation); gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED); + priv->in_switch = TRUE; /* If the press didn't happen in the draggable handle, * cancel the pan gesture right away @@ -232,6 +233,8 @@ gtk_switch_multipress_gesture_released (GtkGestureMultiPress *gesture, if (priv->in_switch && gtk_gesture_handles_sequence (GTK_GESTURE (gesture), sequence)) gtk_switch_begin_toggle_animation (sw); + + priv->in_switch = FALSE; } static void |