Skip to content

fix: Change modifier keys for wheel actions#1372

Merged
manthey merged 1 commit intomasterfrom
wheel-ctrl
Apr 18, 2025
Merged

fix: Change modifier keys for wheel actions#1372
manthey merged 1 commit intomasterfrom
wheel-ctrl

Conversation

@manthey
Copy link
Copy Markdown
Contributor

@manthey manthey commented Apr 18, 2025

Since 2021-09 it has become the unofficial standard to send pinch events on touchpads as wheel events with the ctrl key held down. This should correspond to zoom. GeoJS actions predate this and had used ctrl+wheel as rotate (and wheel by itself as zoom). This changes it so shift+wheel is rotate, and wheel+(no shift) regardless of ctrl state is zoom.

Since 2021-09 it has become the unofficial standard to send pinch events
on touchpads as wheel events with the ctrl key held down.  This should
correspond to zoom.  GeoJS actions predate this and had used ctrl+wheel
as rotate (and wheel by itself as zoom).  This changes it so shift+wheel
is rotate, and wheel+(no shift) regardless of ctrl state is zoom.
@manthey
Copy link
Copy Markdown
Contributor Author

manthey commented Apr 18, 2025

See https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent for when this was adopted by different browsers

@manthey manthey merged commit 76a88e5 into master Apr 18, 2025
12 checks passed
@manthey manthey deleted the wheel-ctrl branch April 18, 2025 13:26
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.14.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant