[gnome-shell/wip/carlosg/osk-emoji-and-keypad: 13/22] keyboard: Avoid sequence grabs on touch



commit 9acc93e3448ea94afe127f6acc10959e760e71a8
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jan 21 20:40:31 2019 +0100

    keyboard: Avoid sequence grabs on touch
    
    We can do without these. Since grabs prevent gestures in parent containers
    from happening, we actively don't want these for emoji scrolling/paging.

 js/ui/keyboard.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index fac42671d..e293ee7ea 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -404,13 +404,10 @@ var Key = new Lang.Class({
 
             if (!this._touchPressed &&
                 event.type() == Clutter.EventType.TOUCH_BEGIN) {
-                device.sequence_grab(sequence, actor);
                 this._touchPressed = true;
                 this._press(key);
             } else if (this._touchPressed &&
-                       event.type() == Clutter.EventType.TOUCH_END &&
-                       device.sequence_get_grabbed_actor(sequence) == actor) {
-                device.sequence_ungrab(sequence);
+                       event.type() == Clutter.EventType.TOUCH_END) {
                 this._touchPressed = false;
                 this._release(key);
             }


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