[gnome-shell/wip/exalm/gestures: 26/36] workspacesView: 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: 26/36] workspacesView: Don't allow mouse scrolling while animating
- Date: Tue, 12 Nov 2019 11:34:43 +0000 (UTC)
commit d45e7e1e610116188302b6b8db65a40b4e8fa1bf
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Oct 16 10:39:48 2019 +0500
workspacesView: Don't allow mouse scrolling while animating
Prevent uncontrollably fast scrolling.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1338
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/605
js/ui/workspacesView.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 2e6addcf1c..fd6b47e53a 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -767,6 +767,9 @@ class WorkspacesDisplay extends St.Widget {
this._getMonitorIndexForEvent(event) != this._primaryIndex)
return Clutter.EVENT_PROPAGATE;
+ if (this._animatingScroll)
+ return Clutter.EVENT_PROPAGATE;
+
let workspaceManager = global.workspace_manager;
let activeWs = workspaceManager.get_active_workspace();
let ws;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]