-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iv pan & zoom controls should be standard #306
Comments
This interaction setup is basically referred to as 'maya' style. (They did it first) Additional details:
Applications that use this control approach are:
Others? Applications which do something different by default:
|
So it looks like middle mouse is universal for pan (independent of modifier keys). But that there's a bit of variation in how to trigger zoom. I personally prefer maya style, but am open to alternate suggestions. |
iv already supports the 'Alt' Maya zoom and pan controls. We also support the right and left click to zoom and unzoom, which the Gelato 'iv' also did, because the Entropy 'iv' did it, because I wrote that I liked that behavior in the proprietary viewer of the studio I left the week before I wrote Entropy's iv. I'm willing to reconsider the click-to-zoom behavior, but I don't want to remove it if it's not hurting anybody and we don't have anything particularly useful to use those clicks for. |
We already have middle mouse pan, Maya Alt-mouse zoom and pan, and mouse wheel zoom. Since there's not cross-app agreement on much else, must we also remove the click-zoom? I vote no, unless there's a universal something to replace it with. |
Oh I see! My mistake! iv does support middle mouse pan, but I never noticed due to the 'cant pan outside the image' #307. Apologies. (If you launch iv on an image that fits in your screen, and dont zoom, pan is locked). So it looks like what's left to do is:
I'm fine with leaving in click to zoom, though I would expect that pixels probes and/or context menus may want to steal those at some point. Cool? |
Wow, iv is way closer than I had remembered to maya-style. ;) |
Still need to support the mouse focused centering. |
I'm interested in working on this for ASWF Dev Days, Sep. 26-27, 2024. I have experience working on similar view manipulation code in other (proprietary) OpenGL-based viewers. |
I'm planning to work this during Dev Days this week. If I understand correctly, some of this ticket is already implemented. Remaining work includes:
Does that sound right? Should I submit against the |
I didn't make much progress on this during DevDays, working instead on fixing #4451, which prevented iv from working at all (at least on some Linux hosts). I still hope to work the present issue in the future, though it's fine if someone else wants to work it. |
You still got a PR accepted, @dadler, fixing a legit bug! |
Jeremy says: Pan and zoom should work the same as every other app. Middle mouse pans. Right mouse zooms. The 'bottom-left to top-right' diagonal should determine the zoom amount, such that moving the mouse either to the right or down zooms. Middle mouse scroll wheel should zoom, and lock to the nearest integer zoom size. +/- on keyboard should also step to next zoom size. (AND also map "=" to "+", so you dont have to hold down shift).
LG says: double check other important image apps to make sure that these assumptions are nearly universal before changing any current behaviors.
The text was updated successfully, but these errors were encountered: