From 499af2dd812b6dbac81209ccede0b1b3719703ba Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 6 Jan 2021 16:38:44 -0300 Subject: [PATCH] workspacesView/workspacesDisplay: Ignore emulated events When handling all scroll directions, it is imperative to ignore emulated events. Otherwise we may get the wrong scroll direction, e.g. when natural scrolling is enabled. Ignore pointer emulated events in WorkspaceDisplay._onScroll(). Part-of: --- js/ui/workspacesView.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index 4a11f0888..1e8faf349 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -756,6 +756,9 @@ class WorkspacesDisplay extends St.Widget { if (!this._canScroll) return Clutter.EVENT_PROPAGATE; + if (event.is_pointer_emulated()) + return Clutter.EVENT_PROPAGATE; + let workspaceManager = global.workspace_manager; let activeWs = workspaceManager.get_active_workspace(); let ws;