[gnome-shell/wip/carlosg/osk-gestures-capture: 1/2] edgeDragAction: Change edge trigger threshold to AFTER
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-gestures-capture: 1/2] edgeDragAction: Change edge trigger threshold to AFTER
- Date: Wed, 25 May 2022 18:56:46 +0000 (UTC)
commit 163b296e3d1db6ae1a07207b1c62955b956c46ce
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.
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]