forked from AuroraMiddleware/gtk
pan: Remove wrong check
From the very early days where there were a NONE=0 GtkPanOrientation value. This makes vertical pan operations work as expected.
This commit is contained in:
parent
e70e3963dd
commit
bd68db4b25
@ -158,9 +158,6 @@ check_orientation_matches (GtkGesturePan *gesture,
|
|||||||
{
|
{
|
||||||
GtkGesturePanPrivate *priv = gtk_gesture_pan_get_instance_private (gesture);
|
GtkGesturePanPrivate *priv = gtk_gesture_pan_get_instance_private (gesture);
|
||||||
|
|
||||||
if (priv->orientation == 0)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
return (((direction == GTK_PAN_DIRECTION_LEFT ||
|
return (((direction == GTK_PAN_DIRECTION_LEFT ||
|
||||||
direction == GTK_PAN_DIRECTION_RIGHT) &&
|
direction == GTK_PAN_DIRECTION_RIGHT) &&
|
||||||
priv->orientation == GTK_PAN_ORIENTATION_HORIZONTAL) ||
|
priv->orientation == GTK_PAN_ORIENTATION_HORIZONTAL) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user