[gnome-shell/wip/exalm/gestures: 43/50] appDisplay: Don't allow mouse scrolling while animating
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/exalm/gestures: 43/50] appDisplay: Don't allow mouse scrolling while animating
- Date: Wed, 16 Oct 2019 21:51:00 +0000 (UTC)
commit a5a8cce24f3d67afae735dff1615a4a972332121
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Wed Oct 16 12:30:14 2019 +0500
appDisplay: Don't allow mouse scrolling while animating
Prevent uncontrollably fast scrolling.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1338
js/ui/appDisplay.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 7f1fd2b302..bc99ea1494 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -598,6 +598,9 @@ var AllView = GObject.registerClass({
if (this._swipeTracker.canHandleScrollEvent(event))
return Clutter.EVENT_PROPAGATE;
+ if (this._animating)
+ return Clutter.EVENT_STOP;
+
let direction = event.get_scroll_direction();
if (direction == Clutter.ScrollDirection.UP)
this.goToPage(this._grid.currentPage - 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]