[gnome-shell/wip/exalm/gestures: 7/16] 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: 7/16] workspacesView: Don't allow mouse scrolling while animating
- Date: Wed, 16 Oct 2019 07:35:22 +0000 (UTC)
commit 0b16e1eb072d8441165005cd41893680627b7e48
Author: Alexander Mikhaylenko <exalm7659 gmail com>
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/issues/1338
js/ui/workspacesView.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 18cb5977a5..cce85ba65b 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -798,6 +798,9 @@ var WorkspacesDisplay = class {
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]