[gnome-shell/wip/carlosg/osk-gestures-capture: 5/7] keyboard: Set up emoji panel pan gesture in capture phase




commit da3d4e82e359e7aca63652c6d8e4f4ba2c71b722
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 24 22:07:27 2022 +0200

    keyboard: Set up emoji panel pan gesture in capture phase
    
    We need this to catch events before they reach to the emoji
    keys, and the gesture can begin/end properly.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2304>

 js/ui/keyboard.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index b9e3aec60f..570d39ccbf 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -706,7 +706,7 @@ var EmojiPager = GObject.registerClass({
         panAction.connect('gesture-cancel', this._onPanCancel.bind(this));
         panAction.connect('gesture-end', this._onPanEnd.bind(this));
         this._panAction = panAction;
-        this.add_action(panAction);
+        this.add_action_full('pan', Clutter.EventPhase.CAPTURE, panAction);
     }
 
     get delta() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]