Closed ajaskier closed 9 years ago
Zooming is a bit confusing now because of the 1:1 thing. You cannot zoom out from zoom=1 until 1:1, only zoom back in. This needs to change. Let's define that whenever zoom < 1 it means zoom is 1:1. So when zooming in from 1:1, we jump to zoom = 1. When scaling out, if zoom > 1 but new zoom would be <= 1, set to 1. If zoom == 1 but new zoom would be < 1, do 1:1.
Also when setting zoom to 1:1 and it does not fit, it should also be centered (right now it looks like it is centered on one axis, but not the other.
Looks great so far!