diff options
author | Alexander Mikhaylenko <exalm7659@gmail.com> | 2021-03-13 19:57:53 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <exalm7659@gmail.com> | 2021-03-13 19:57:53 +0500 |
commit | e7645426b335433e92a3a5c0d6b7b0b732cb6ae0 (patch) | |
tree | 5e32c85511ff692eae980c02b79585df7a2cee81 | |
parent | ac56f9f41fa83b17abd90a7e0a5ab565eaf1ae77 (diff) | |
download | gnome-shell-wip/exalm/swipes.tar.gz |
swipeTracker: Reset before emitting 'end' and not afterwip/exalm/swipes
If the actor is unmapped in the handler, the touch gesture will cancel.
Since we haven't reset the state yet, it will still work and will actually
cancel the gesture, so reset before that instead.
Fixes overview cancelling when trying to open it with a swipe.
-rw-r--r-- | js/ui/swipeTracker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ui/swipeTracker.js b/js/ui/swipeTracker.js index 8f80bfb3e..9c3671d3c 100644 --- a/js/ui/swipeTracker.js +++ b/js/ui/swipeTracker.js @@ -741,8 +741,8 @@ var SwipeTracker = GObject.registerClass({ if (duration > 0) duration = Math.clamp(duration, MIN_ANIMATION_DURATION, maxDuration); - this.emit('end', duration, endProgress); this._reset(); + this.emit('end', duration, endProgress); } _cancelTouchGesture(_gesture, time, distance) { |