zoom with Mouse Wheel can't go back to 100%.
Using SVN 2507.
1. Open a music score, it's 100% view.
2. Press Ctrl + mouse wheel up, it can zoom in, but the scales are : 100%, 110%, 121, 133.1%...
3. Press Ctrl + mouse wheel down, it can't go back to 100%, until I choose item 100% in toolbar combo list.
Ctrl + mouse wheel is a frequently used shortcut in some web browsers, or document viewers, seems they all can go back to 100%.
Comments
I fixed the zoom to act with a 10% predictable step in r2545
Not sure it's the best option.
Sibelius offers 100, 125, 150, 200, 300, 400, 800, 1600%
The steps are too small for high zoom values and too big for low values. The old version feels more natural/usable. Not going back to 100% with mouse is irrelevant for me and i would not consider this as a bug.
I also prefer a multiplier for zoom instead of addition/subtraction.
The old code uses 1.1 for zoom-in but 0.9 for zoom-out. In order to get back to 100% zoom-out should actually be 1 / (1.1) = 0.9090909090...
There might be some rounding errors but it should be much closer in r. 2549
If we want slightly bigger steps we could use 1.25 and 0.8
Agree with the multiplication.
I don't mind neither not going back to 100% with the mouse but I can understand if it looks weird for some people.
Another way is to make an array of steps...
I added a check in r2551 (step=0 --> Zoom = 100%)
Hope it's ok.
If you zoom in to 1600% and return back it doesn't come to exactly 100%. Same with zooming out to 5% and trying to returning to 100%. Tested using r. 2551.
Automatically closed -- issue fixed for 2 weeks with no activity.