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.
This commit is contained in:
Carlos Garnacho 2019-01-21 20:40:31 +01:00 committed by Florian Müllner
parent b092c5f37d
commit 4aecf4c973

View File

@ -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);
}