Skip to content

Added option to use mouse wheel as zoomin/zoomout#4488

Open
kvegeta wants to merge 2 commits into
cyruzzo:mainfrom
kvegeta:main
Open

Added option to use mouse wheel as zoomin/zoomout#4488
kvegeta wants to merge 2 commits into
cyruzzo:mainfrom
kvegeta:main

Conversation

@kvegeta

@kvegeta kvegeta commented Jul 15, 2026

Copy link
Copy Markdown

Added an option to enable zooming with the mouse wheel without holding Ctrl, making one-handed use easier (e.g. when using AboveVTT on a tabletop without a keyboard).
Zoom In/Out buttons are now hidden when the option is enabled.

@Azmoria

Azmoria commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

This currently prevents scrolling anywhere else there's a scrollable element. When wheelZoomAsToggle is true, you'll probably want to make sure the hovered element is #black_layer or inside #VTT.

I'll have to try some other devices too as this may interfere with touch pad. Often using gestures that send wheel events instead of right click drag. It might be ok anyway since it'd be optional.

@kvegeta

kvegeta commented Jul 19, 2026

Copy link
Copy Markdown
Author

it's maybe a good way to have the option only on desktop view/device? (that don't prevent as touchscreen input anyway)

@Azmoria

Azmoria commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Yeah, probably don't have to hide the setting but could ignore the setting if it's a scroll touchpad gesture that triggers a 'wheel' event.

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.

2 participants