Jump to content

ctrl-B Zoom to Window


Peter1
 Share

Recommended Posts

It does for me. What are you seeing instead?

Link to comment
Share on other sites

22 hours ago, Peter1 said:

I expected Zoom to Window to revert to the previous zoom factor, on alternating ctrl-B.

 

21 hours ago, Ego Eram Reputo said:

It does for me. What are you seeing instead?

Formally technically you are right, because I really mentioned the "previous zoom factor".

 

ctrl-B does not revert to the previous offset.

Link to comment
Share on other sites

1 hour ago, Rick Brewster said:

There was recently a bug fixed here, so make sure you're using the latest version (4.3.7)

4.3.7 64 bit portable I'm using, dated Jan 04, 2022, version 4.307.8039.30451. I got it on Jan 09.

Edited by Peter1
dates and versions.
Link to comment
Share on other sites

  • 2 weeks later...

Ctrl+B does toggle the zoom level, and the scroll position ("offset"?) is anchored to the mouse position within the image. If you want the scroll position to not follow the mouse, you need to move the mouse outside the canvas before pressing Ctrl+B. This is all intentional.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

2 hours ago, Rick Brewster said:

Ctrl+B does toggle the zoom level, and the scroll position ("offset"?) is anchored to the mouse position within the image. If you want the scroll position to not follow the mouse, you need to move the mouse outside the canvas before pressing Ctrl+B. This is all intentional.

 

Thank you for explaining me the algorithm used.

 

This makes sense when I actually change intentionally the focus in the Zoomed-to-Window view, by moving the mouse. As long as I did have the mouse over a point in the Zoomed-in view and did not move it while in the zoomed-out state (just flipping between the 2 views), it should return to the same picture-mouse relation. The mouse coordinates happen obviously to be just unintentionally anywhere in the zoomed-out view when they are at an interesting position in the zoomed-in view. The mouse coordinates while zoomed in and over an interesting point, can be anywhere in the window. Moving away out of the window for ctrl-B does not make sense either, because I loose having the mouse at the interesting position then, and it is a long move.

 

Alternatively, you could move the mouse coordinates (that is synchronize the mouse position) when zooming to the Zoomed-to-Window view with ctrl-B, but that's much less preferable.

Edited by Peter1
Link to comment
Share on other sites

I completely depends on which mouse position is the anchor. The position in the Zoom-to-Window view, or the position in the Zoomed-in view? How to guess what the user has in mind? The possibility to change the focus in the Zoom-to-Window view is of course useful.

Edited by Peter1
Link to comment
Share on other sites

On 2/21/2022 at 3:37 AM, Rick Brewster said:

I already explained that it’s working as intended. I never said anything about changing it for 4.3.8

Yes agreed, you did explain the intentions. I pointed out that there are TWO mouse positions that could be considered. The one in the zoomed-in view, and the one in the zoomed-to-window view. They have the same mouse coordinates relative to the window, but one of the two is just plain hazard, as long as the mouse is not "intentionally" moved to a new point of interest mostly in the zoomed-to-window view. The hazard half would lead to a lose of the work focus, or point of interest.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...