Skip to content

Commit

Permalink
appSwitcher: ignore smooth scrolling
Browse files Browse the repository at this point in the history
Ignore smooth scrolling when using the mouse wheel to scroll between apps to prevent skipping windows.

Fixes #11396
  • Loading branch information
mdpenguin authored and mtwebster committed Jan 6, 2023
1 parent d1e9617 commit d1dd7b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/ui/appSwitcher/appSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ AppSwitcher.prototype = {

// allow navigating by mouse-wheel scrolling
_scrollEvent: function(actor, event) {
if (event.get_scroll_direction() == Clutter.ScrollDirection.SMOOTH)
return Clutter.EVENT_STOP;
if(this._checkSwitchTime()) {
actor.set_reactive(false);
if (event.get_scroll_direction() == Clutter.ScrollDirection.UP)
Expand Down

0 comments on commit d1dd7b1

Please sign in to comment.