swipeTracker: Use AFTER trigger edge for TouchSwipeGesture
Otherwise, we can get stray 'begin' signals from the touch gesture. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1562>
This commit is contained in:
parent
c5019dbf62
commit
1134afd12a
@ -412,7 +412,7 @@ var SwipeTracker = GObject.registerClass({
|
|||||||
this.bind_property('orientation', this._touchpadGesture, 'orientation', 0);
|
this.bind_property('orientation', this._touchpadGesture, 'orientation', 0);
|
||||||
|
|
||||||
this._touchGesture = new TouchSwipeGesture(allowedModes, 4,
|
this._touchGesture = new TouchSwipeGesture(allowedModes, 4,
|
||||||
Clutter.GestureTriggerEdge.NONE);
|
Clutter.GestureTriggerEdge.AFTER);
|
||||||
this._touchGesture.connect('begin', this._beginTouchSwipe.bind(this));
|
this._touchGesture.connect('begin', this._beginTouchSwipe.bind(this));
|
||||||
this._touchGesture.connect('update', this._updateGesture.bind(this));
|
this._touchGesture.connect('update', this._updateGesture.bind(this));
|
||||||
this._touchGesture.connect('end', this._endGesture.bind(this));
|
this._touchGesture.connect('end', this._endGesture.bind(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user