diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-05-06 11:39:15 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-05-23 19:54:29 +0200 |
commit | c34280d97b763f2550c87b4e046b2679712c65f3 (patch) | |
tree | 19857d1f597b263974a195a33b11e6b58a03276d /gtk/gtkgesturepan.c | |
parent | e080eafef8216d149cc262633c3021acf06e9236 (diff) | |
download | gtk+-c34280d97b763f2550c87b4e046b2679712c65f3.tar.gz |
pan: make the direction factor less narrow in v/h directions
Diffstat (limited to 'gtk/gtkgesturepan.c')
-rw-r--r-- | gtk/gtkgesturepan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkgesturepan.c b/gtk/gtkgesturepan.c index a4e79176b1..b166388b38 100644 --- a/gtk/gtkgesturepan.c +++ b/gtk/gtkgesturepan.c @@ -64,7 +64,7 @@ enum { static guint signals[N_SIGNALS] = { 0 }; -G_DEFINE_TYPE (GtkGesturePan, gtk_gesture_pan, GTK_TYPE_GESTURE_DRAG) +G_DEFINE_TYPE_WITH_PRIVATE (GtkGesturePan, gtk_gesture_pan, GTK_TYPE_GESTURE_DRAG) static void gtk_gesture_pan_get_property (GObject *object, @@ -138,7 +138,7 @@ guess_direction (GtkGesturePan *gesture, abs_x = ABS (offset_x); abs_y = ABS (offset_y); -#define FACTOR 3 +#define FACTOR 2 if (abs_x > abs_y * FACTOR) direction_from_offset (offset_x, offset_y, GTK_PAN_ORIENTATION_HORIZONTAL, direction); |