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



commit da256494b0a36f1ed5ff0b077ff6acbe43e27de1
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 c4b173e8c..6ecef255c 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -394,13 +394,10 @@ var Key = class Key {
 
             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]