swipeTracker: Ignore Meta key while workspace scroll gesture is in progress

Workspace transition stopped midway when the Meta key
was released while the two-finger scroll gesture was
in progress. This commit ignores the Meta key once
the gesture has been confirmed and is in motion.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2135>
This commit is contained in:
kyte 2022-02-01 03:29:49 +05:30 committed by Marge Bot
parent 7fb72bceed
commit 1260e35093

View File

@ -364,7 +364,7 @@ const ScrollGesture = GObject.registerClass({
if ((this._allowedModes & Main.actionMode) === 0) if ((this._allowedModes & Main.actionMode) === 0)
return false; return false;
if (this.scrollModifiers !== 0 && if (!this._began && this.scrollModifiers !== 0 &&
(event.get_state() & this.scrollModifiers) === 0) (event.get_state() & this.scrollModifiers) === 0)
return false; return false;