From a06a418ac16900bbca7180b73e0af1857a07b11e Mon Sep 17 00:00:00 2001 From: Alexander Mikhaylenko Date: Thu, 6 Feb 2020 00:51:45 +0500 Subject: [PATCH] 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 --- js/ui/swipeTracker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index 65c3d0d64..77536e476 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -270,6 +270,8 @@ const ScrollGesture = GObject.registerClass({ return; this._enabled = enabled; + this._began = false; + this.notify('enabled'); }