swipeTracker: Set up TouchSwipeGesture in the capture phase
Use the new API to specify the gesture phase. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1992>
This commit is contained in:
parent
919c4cf3d5
commit
748fe074c4
@ -493,7 +493,7 @@ var SwipeTracker = GObject.registerClass({
|
|||||||
this.bind_property('orientation', this._touchGesture, 'orientation',
|
this.bind_property('orientation', this._touchGesture, 'orientation',
|
||||||
GObject.BindingFlags.SYNC_CREATE);
|
GObject.BindingFlags.SYNC_CREATE);
|
||||||
this.bind_property('distance', this._touchGesture, 'distance', 0);
|
this.bind_property('distance', this._touchGesture, 'distance', 0);
|
||||||
global.stage.add_action(this._touchGesture);
|
global.stage.add_action_full('swipe', Clutter.EventPhase.CAPTURE, this._touchGesture);
|
||||||
|
|
||||||
if (params.allowDrag) {
|
if (params.allowDrag) {
|
||||||
this._dragGesture = new TouchSwipeGesture(allowedModes, 1,
|
this._dragGesture = new TouchSwipeGesture(allowedModes, 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user