[gnome-shell/wip/carlosg/osk-emoji-and-keypad: 66/76] keyboard: Avoid sequence grabs on touch
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-emoji-and-keypad: 66/76] keyboard: Avoid sequence grabs on touch
- Date: Thu, 31 Jan 2019 20:20:50 +0000 (UTC)
commit 434e07346c5c726c9dfb451560ae4a6df45c3628
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 a57326361..4f4e3776f 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]