From 1134afd12afc83f7746a2f6ec82604e924de5fdd Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 7 Jan 2021 16:00:52 -0300 Subject: [PATCH] swipeTracker: Use AFTER trigger edge for TouchSwipeGesture Otherwise, we can get stray 'begin' signals from the touch gesture. Part-of: --- js/ui/swipeTracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index fd13fd725..eb1960f61 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -412,7 +412,7 @@ var SwipeTracker = GObject.registerClass({ this.bind_property('orientation', this._touchpadGesture, 'orientation', 0); this._touchGesture = new TouchSwipeGesture(allowedModes, 4, - Clutter.GestureTriggerEdge.NONE); + Clutter.GestureTriggerEdge.AFTER); this._touchGesture.connect('begin', this._beginTouchSwipe.bind(this)); this._touchGesture.connect('update', this._updateGesture.bind(this)); this._touchGesture.connect('end', this._endGesture.bind(this));