keyboard: Set up emoji panel pan gesture in capture phase

We need this to catch events before they reach to the emoji
keys, and the gesture can begin/end properly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2304>
This commit is contained in:
Carlos Garnacho 2022-05-24 22:07:27 +02:00 committed by Marge Bot
parent a3bfe0ab56
commit da3d4e82e3

View File

@ -706,7 +706,7 @@ var EmojiPager = GObject.registerClass({
panAction.connect('gesture-cancel', this._onPanCancel.bind(this));
panAction.connect('gesture-end', this._onPanEnd.bind(this));
this._panAction = panAction;
this.add_action(panAction);
this.add_action_full('pan', Clutter.EventPhase.CAPTURE, panAction);
}
get delta() {