grabHelper: Propagate events while this._ignoreUntilRelease

Let these events to be handled as usual, so that the grabbing actor
can handle input differently (e.g. trigger DnD) while the grabHelper
is active.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1774>
This commit is contained in:
Carlos Garnacho 2021-03-18 19:00:13 +01:00 committed by Marge Bot
parent ecead8c727
commit 91a7978711

View File

@ -306,7 +306,7 @@ var GrabHelper = class GrabHelper {
if (this._ignoreUntilRelease && (motion || release || touch)) { if (this._ignoreUntilRelease && (motion || release || touch)) {
if (release || touchEnd) if (release || touchEnd)
this._ignoreUntilRelease = false; this._ignoreUntilRelease = false;
return Clutter.EVENT_STOP; return Clutter.EVENT_PROPAGATE;
} }
if (this._isWithinGrabbedActor(event.get_source())) if (this._isWithinGrabbedActor(event.get_source()))