longpress: Ensure check() happens after cancel()
And delegate on GtkGesture::check(), it does deal better with extra fleeting touches.
This commit is contained in:
parent
c506dfe600
commit
c3075f1d56
@ -62,7 +62,7 @@ gtk_gesture_long_press_check (GtkGesture *gesture)
|
||||
if (priv->cancelled)
|
||||
return FALSE;
|
||||
|
||||
return gtk_gesture_is_active (gesture);
|
||||
return GTK_GESTURE_CLASS (gtk_gesture_long_press_parent_class)->check (gesture);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
@ -136,6 +136,7 @@ gtk_gesture_long_press_update (GtkGesture *gesture,
|
||||
}
|
||||
|
||||
priv->cancelled = TRUE;
|
||||
gtk_gesture_check (gesture);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user