[gnome-shell/wip/carlosg/sanitize-gestures: 31/32] 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: 31/32] swipeTracker: Set up TouchSwipeGesture in the capture phase
- Date: Wed, 24 Nov 2021 22:33:24 +0000 (UTC)
commit 8531eacf00977fc059521ba9d0a7a0e8fe86ed0f
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]