edgeDragAction: Change edge trigger threshold to AFTER

For all instances of this gesture, we want this gesture to
activate after some distance, not to eat button presses/releases
right away.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2304>
This commit is contained in:
Carlos Garnacho 2022-05-25 20:54:39 +02:00 committed by Marge Bot
parent da3d4e82e3
commit 1fa5c63307

View File

@ -19,6 +19,7 @@ var EdgeDragAction = GObject.registerClass({
this._side = side;
this._allowedModes = allowedModes;
this.set_n_touch_points(1);
this.set_threshold_trigger_edge(Clutter.GestureTriggerEdge.AFTER);
global.display.connect('grab-op-begin', () => this.cancel());
}