swipeTracker: Reset scroll gesture state on disabling

Ensure that scrolling works correctly next time it's enabled.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2177
This commit is contained in:
Alexander Mikhaylenko 2020-02-06 00:51:45 +05:00 committed by Florian Müllner
parent 35063c9e7c
commit a06a418ac1

View File

@ -270,6 +270,8 @@ const ScrollGesture = GObject.registerClass({
return;
this._enabled = enabled;
this._began = false;
this.notify('enabled');
}