appDisplay: Disable swipe tracker during swarm animation

Eensures it resets when an animation starts.

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

View File

@ -530,8 +530,10 @@ var AllView = GObject.registerClass({
// Overridden from BaseAppView
animate(animationDirection, onComplete) {
this._scrollView.reactive = false;
this._swipeTracker.enabled = false;
let completionFunc = () => {
this._scrollView.reactive = true;
this._swipeTracker.enabled = this.mapped;
if (onComplete)
onComplete();
};