[gnome-shell/wip/carlosg/osk-gestures-capture: 6/7] edgeDragAction: Change edge trigger threshold to AFTER
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-gestures-capture: 6/7] edgeDragAction: Change edge trigger threshold to AFTER
- Date: Fri, 27 May 2022 09:29:41 +0000 (UTC)
commit 1fa5c63307e03d806eacdcf14d31e63afc27af20
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed May 25 20:54:39 2022 +0200
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>
js/ui/edgeDragAction.js | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/js/ui/edgeDragAction.js b/js/ui/edgeDragAction.js
index 986b658e06..c0f9e4edd0 100644
--- a/js/ui/edgeDragAction.js
+++ b/js/ui/edgeDragAction.js
@@ -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());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]