[gnome-shell/wip/carlosg/osk-updates: 73/76] swipeTracker: Set up 1fg drag gesture in capture phase
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-updates: 73/76] swipeTracker: Set up 1fg drag gesture in capture phase
- Date: Wed, 10 Aug 2022 16:57:22 +0000 (UTC)
commit 2b28830e837f65ad3b9361d26442d8c8e8874c37
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jun 28 23:45:15 2022 +0200
swipeTracker: Set up 1fg drag gesture in capture phase
This should be handled in the capture phase so containers setting
up the drag gesture have an opportunity to handle events from children.
This also follows what the 3fg swipe gesture does.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2278>
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 0781fec81e..869f977c55 100644
--- a/js/ui/swipeTracker.js
+++ b/js/ui/swipeTracker.js
@@ -503,7 +503,7 @@ var SwipeTracker = GObject.registerClass({
this.bind_property('orientation', this._dragGesture, 'orientation',
GObject.BindingFlags.SYNC_CREATE);
this.bind_property('distance', this._dragGesture, 'distance', 0);
- actor.add_action(this._dragGesture);
+ actor.add_action_full('drag', Clutter.EventPhase.CAPTURE, this._dragGesture);
} else {
this._dragGesture = null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]