mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
Merge branch 'no-3finger-touch' into 'main'
touch: Remove 3-finger gestures See merge request GNOME/gnome-shell!3276
This commit is contained in:
commit
3e6bb8c216
1 changed files with 0 additions and 18 deletions
|
|
@ -477,19 +477,6 @@ export const SwipeTracker = GObject.registerClass({
|
|||
this.bind_property('orientation', this._touchpadGesture, 'orientation',
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
|
||||
this._touchGesture = new TouchSwipeGesture(allowedModes,
|
||||
GESTURE_FINGER_COUNT,
|
||||
Clutter.GestureTriggerEdge.AFTER);
|
||||
this._touchGesture.connect('begin', this._beginTouchSwipe.bind(this));
|
||||
this._touchGesture.connect('update', this._updateGesture.bind(this));
|
||||
this._touchGesture.connect('end', this._endTouchGesture.bind(this));
|
||||
this._touchGesture.connect('cancel', this._cancelTouchGesture.bind(this));
|
||||
this.bind_property('enabled', this._touchGesture, 'enabled', 0);
|
||||
this.bind_property('orientation', this._touchGesture, 'orientation',
|
||||
GObject.BindingFlags.SYNC_CREATE);
|
||||
this.bind_property('distance', this._touchGesture, 'distance', 0);
|
||||
global.stage.add_action_full('swipe', Clutter.EventPhase.CAPTURE, this._touchGesture);
|
||||
|
||||
if (params.allowDrag) {
|
||||
this._dragGesture = new TouchSwipeGesture(allowedModes, 1,
|
||||
Clutter.GestureTriggerEdge.AFTER);
|
||||
|
|
@ -774,10 +761,5 @@ export const SwipeTracker = GObject.registerClass({
|
|||
this._touchpadGesture.destroy();
|
||||
delete this._touchpadGesture;
|
||||
}
|
||||
|
||||
if (this._touchGesture) {
|
||||
global.stage.remove_action(this._touchGesture);
|
||||
delete this._touchGesture;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue