RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
802 stars 262 forks source link

[Request] Change Mouse Wheel Behavior to Move Map #417

Open mrkwnzl opened 5 years ago

mrkwnzl commented 5 years ago

Is your feature request related to a problem? Please describe. Not really related to a problem, but on a Mac, using the mouse wheel is a bit awkward. Mouse wheel up/down is used for zooming, while left/right is used for facing. Since the Apple mouses aren’t restricted to two axes (as are many touch pads on laptops), a more natural way of using the mouse wheel would be moving the map.

Describe the solution you'd like I’d like a toggle in the preferences that changes the mouse wheel from zooming (I can do that with keyboard shortcuts) and facing (I can do that by using Shift-MWheel Up/Down), and change it to move map. (For an example of that, see Roll20.)

Azhrei commented 5 years ago

This is related to #413 (mouse movement triggers facing change on macOS; mentioned for tracking purposes).

I've always thought it a bit weird that panning the map was done with right-click-pan instead of mouse wheel up/down and left/right. Although, when MT was written, using the wheel for left/right wasn't very common and even now, there are many wheels that can't do left/right. For right now, I agree that a toggle that turns off the left/right feature would probably be sufficient.

Long term, it would be great to have an "event mapper" so that when the map window has focus, mouse events can be mapped to equivalent application events. Maybe different mappings for other modes — for example, while drawing VBL the map can't be panned because right-click-pan is subsumed by right-click-finish-shape, and because the map doesn't have scrollbars (infinite sized maps make scrollbars tough!), you can't even use scrollbars to pan the map.

mrkwnzl commented 5 years ago

Hello! I was wondering if you are considering this at the moment, at least the part about an option to disable to set the facing of a token with the mouse wheel (which was originally proposed in #413). I came to use MapTool exclusively for online gaming, and that’s the one thing that really disrupts my gameplay, as correcting the token facing is rather cumbersome, when I accidentally changed the facing of multiple tokens.

Thanks!

Phergus commented 5 years ago

This will likely wait until a developer using a Mac decides to take it on.