mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
gtk/gesture: Fix point info lookup on touchpad events
Since the addition of GdkEventSequence in touchpad events, these are now stored in the gesture using that sequence. This bit of touchpad gesture handling was however missing to be updated, still looking up the special NULL sequence. Use the last sequence here, which will be the one coming from touchpad gesture events.
This commit is contained in:
parent
8e86e6325b
commit
6fd3645713
@ -242,7 +242,7 @@ _gtk_gesture_get_n_touchpad_points (GtkGesture *gesture,
|
||||
if (!priv->touchpad)
|
||||
return 0;
|
||||
|
||||
data = g_hash_table_lookup (priv->points, NULL);
|
||||
data = g_hash_table_lookup (priv->points, priv->last_sequence);
|
||||
|
||||
if (!data)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user