Skip to content

Mouse wheel fine and ultrafine zoom - #6026

Open
PaulMurrayCbr wants to merge 6 commits into
RPTools:developfrom
PaulMurrayCbr:mouse-wheel-fine
Open

Mouse wheel fine and ultrafine zoom#6026
PaulMurrayCbr wants to merge 6 commits into
RPTools:developfrom
PaulMurrayCbr:mouse-wheel-fine

Conversation

@PaulMurrayCbr

@PaulMurrayCbr PaulMurrayCbr commented Aug 6, 2026

Copy link
Copy Markdown

Identify the Bug or Feature request

#6025

Description of the Change

net.rptools.maptool.client.ui.Scale is altered so that the integer 'zoomLevel' is now in ultrafine units being the existing scaleIncrement / 24 / 24.

Existing methods updated so that functionality is preserved. zoomIn internally zooms by 24*24 ultrafine units

Added zoomInFine, zoomOutFine, zoomInUltrafine and zoomOutUltrafine.

Altered DefaultTool to use fine and ultrafine on ctrl or ctrl-alt mousewheel.

Possible Drawbacks

GridTool hijacks the mouse wheel altogether and uses ctrl-mousewheel to zoom the view rather than zooming the grid. So, ctrl-mousewheel behaves differently in the grid view than the default view.

Might want to alter the behaviour of GridTool to use (say) capslock to switch between grid and map sizing. Could have used the windows key to select fine zoom - but it's not approprite: the windows key is for system things. Shift is already taken. I have taken the conservative option and not messed with GridTool.

The change does not add this functionality to the -/= keys or the zoom menu, so this functionality is only available with the mousewheel. I couldn't quite figure out how to get the Action classes to play nicely with ctrl and ctrl-alt, so I have not messed with that either. Particularly difficult in view of how - ideally - we'd want the JMenuItem to also work with the modifier keys.

Documentation Notes

User docs on zooming with the mousewheel need to mention that ctrl-mousewheel and ctrl-alt-mousewheel give a fine and ultrafine zoom, permitting (as per the feature request) a projected map to better match a physical size.

Release Notes

  • added ctrl-mousewheel and ctrl-alt-mousewheel to permit fine and ultrafine map zooming in the default view

This change is Reviewable

@PaulMurrayCbr PaulMurrayCbr changed the title Mouse wheel fine and ultarfine zoom Mouse wheel fine and ultrafine zoom Aug 6, 2026
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.

1 participant