Skip to content

Commit

Permalink
fix(macro): fix shift + mousewheel on mac by using spinX values when …
Browse files Browse the repository at this point in the history
…spinY is 0

Shift + mousewheel on mac is used for "horizontal scrolling". Per comment in #2834, set spinY and
pixelY in normalizeWheel to spinX/pixelX when y values are 0

re #2834
  • Loading branch information
DevinAPorro committed Dec 14, 2023
1 parent bd32b05 commit 7f82d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/macros.js
Original file line number Diff line number Diff line change
Expand Up @@ -1746,9 +1746,9 @@ export function normalizeWheel(wheelEvent) {

return {
spinX: sX,
spinY: sY,
spinY: sY || sX,
pixelX: pX,
pixelY: pY,
pixelY: pY || pX,
};
}

Expand Down

0 comments on commit 7f82d54

Please sign in to comment.