[gnome-shell/wip/carlosg/sanitize-gestures: 1/2] swipeTracker: Set up TouchSwipeGesture in the capture phase
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/sanitize-gestures: 1/2] swipeTracker: Set up TouchSwipeGesture in the capture phase
- Date: Tue, 2 Nov 2021 15:22:39 +0000 (UTC)
commit 13de0b70fced0105234287486c7ee3934dbb77c0
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Sep 27 22:44:37 2021 +0200
swipeTracker: Set up TouchSwipeGesture in the capture phase
Use the new API to specify the gesture phase.
js/ui/swipeTracker.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js
index 4546b76b61..b49216e5f6 100644
--- a/js/ui/swipeTracker.js
+++ b/js/ui/swipeTracker.js
@@ -493,7 +493,7 @@ var SwipeTracker = GObject.registerClass({
this.bind_property('orientation', this._touchGesture, 'orientation',
GObject.BindingFlags.SYNC_CREATE);
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) {
this._dragGesture = new TouchSwipeGesture(allowedModes, 1,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]