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



commit c9ad4844a9c8994d57e99677b64e4a830839f505
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 8bd31c8e8..3f658b266 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -395,13 +395,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]