Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Handle shift-scroll more robustly#5559

Merged
knolleary merged 1 commit intodevnode-red/node-red:devfrom
5557-fix-shift-scrollnode-red/node-red:5557-fix-shift-scrollCopy head branch name to clipboard
Mar 10, 2026
Merged

Handle shift-scroll more robustly#5559
knolleary merged 1 commit intodevnode-red/node-red:devfrom
5557-fix-shift-scrollnode-red/node-red:5557-fix-shift-scrollCopy head branch name to clipboard

Conversation

@knolleary
Copy link
Member

Fixes #5557

On Mac, shift-scroll works as expected - it scrolls horzontally.

For other OS/browser combinations, it appears not to work as expected - so we have to do it ourselves.

This checks for the shift-key in the wheel event handler. The expectation is to have deltaY=0 and deltaX to be the scroll amount. If, however, we see deltaX=0 and deltaY is not 0, then flip the values to apply the scroll on the other axis.

@knolleary knolleary linked an issue Mar 10, 2026 that may be closed by this pull request
@knolleary knolleary merged commit 1afea0c into dev Mar 10, 2026
5 checks passed
@knolleary knolleary deleted the 5557-fix-shift-scroll branch March 10, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UX: Shift-scroll not scrolling horizontally for some OS/browsers

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.