Create account / Log in

Map Zoom standards

Discussion area for the development team.

Moderators: uckelman, Tim M

Map Zoom standards

Postby marktb1961 » October 18th, 2020, 1:37 pm

Cross posting from this post on the Technical Support & Bugs forum for development aspects...

Cattlesquat wrote:And I guess while we're on the subject of Ctrl+Mouse, we have:
(1) Select/Deselect toggle ... currently Control+Click but maybe should be Command+Click?
(2) Mousewheel + WHAT should change zoom level? Command? Control?
(3) Upcoming 3.5 has a "Flare" function that calls opponent's attention to a place where you left-click, if you use the right set of modifier keys. On most platforms the (configurable) modifier keys are Ctrl and Alt, and/or one of those keys combined with Shift. Which key should stand in for "Ctrl" on Mac for this? (Control or Command)

Brian


Also,
bdgza wrote:For zooming it could be mousewheel + option (alt) or mousewheel + command, I've seen both used (never CTRL).


The combinations that bdgza refers to turn out to be Accessibility controls, and in fact Control is an option for these as well. These potential OS-level (ie screen) zooming controls should be avoided by Vassal or any app, and include a set of keyboard variations:
Control, Command or Option (Alt) as a modifier on the Scroll action.
Key combinations: Alt+Command+8, Alt+Command+-, Alt+Command+=

From my searches, I don't think MacOS has or needs a keyboard modifier for scroll-wheel for zoom. I don't have a mouse (yet) but from what I read I think it has the functionality to allow for zoom in and out. The trackpad certainly does, via the "pinch" and "separate" finger movements. However, I notice that only Apple applications seem to support that, of the ones I looked at.

I did a short survey of common Apple and cross-platform Apps to see what they do to control app-level zoom.

Keyboard-only control is the the common factor, using minus(-)/plus (+) keys for zoom out / in. Apple Maps & Google Maps also allow non-shifted/shifted variations; the most universal combination being Command= and Command-, if one had to choose just one set of keys that did not conflict with the Vassal feature whereby character keyboard presses passthrough to the chat window. At the same time, the editor's ability to specify these keys in Zoom properties might need to be removed/deprecated (global option setting or enforced when the editor is used on old modules?). A potentially module impacting change but I would have thought standardisation of such a basic, generic function is worth it in the long term.

For mouse control, only Apple Maps does this but maybe that is a useful guide, considering what Vassal does.
The control is simply, Double-Click to zoom in and Option(Alt)-Double-Click to zoom out.

Apart from the choice of modifier on +/- keys, the above suggestions could apply to any vassal client.

Mark
Platform used:
Vassal 3.4.10
MacOS Big Sur
iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 331
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: Map Zoom standards

Postby Cattlesquat » October 18th, 2020, 2:43 pm

Okay thanks Mark. I'm not sure how fast we will push forward with trying to make the VASSAL's Mac interface conform with "standard Mac behavior", given the ongoing goal of keeping old modules running successfully, but it's very good to have a survey of what's going on.

Keyboard-only is what VASSAL had until recently, but folks had been asking for some kind of mousewheel zoom support. From bdgza's reply it sounds like as long as we stay away from Control then we will be fine and players can safely use or ignore it.

I'm realizing that Flare should probably stay away from Control as well, so we will probably make "Command" the CTRL-analog in this case -- given that Control-plus-Click has a fairly fundamental meaning on Macs. And "really" module designers should stay away from CTRL in general for this, we're only offering that as a legacy option because that's what VASL has used for its analogous feature for years. The default would likely be Alt(Option) + Click.

Brian
User avatar
Cattlesquat
 
Posts: 942
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA

Re: Map Zoom standards

Postby marktb1961 » October 18th, 2020, 3:30 pm

Cattlesquat wrote:I'm realizing that Flare should probably stay away from Control as well, so we will probably make "Command" the CTRL-analog in this case


You're correct on Control+Click - see my Flare thread, just posted. Command+Click is also already used, as is Shift+Click unless I have mis-understood how Flare would be using it. Anyway, more thoughts on that thread.

Mark
Platform used:
Vassal 3.4.10
MacOS Big Sur
iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 331
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England


Return to Developers

Who is online

Users browsing this forum: No registered users and 3 guests