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
Scale Manager setZoom() will not set zoom back to one #4633
Comments
Just leaving this note here as a reminder to myself: this issue is just line 999 needing |
Happy to help test this if you need it Rich. |
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the |
@photonstorm did you also change the zoom factor based on the scale or is this just fixing the originally reported bug? I'd be happy to make a new ticket for my suggestion if that's easier? |
This only fixes being able to set the zoom factor back to 1 again, the other bug needs its own issue really. |
I've found in testing that once you set zoom level above one you aren't able to set it back to one again.
Demo: https://jsfiddle.net/2g0ydpuh/
In the demo an image as added before the scale manager sets zoom to x4, this works as expected but the call directly after to set zoom back to x1 has no effect and the finished image is left at a x4 zoom. Changing that last line's parameter to anything other than one works as expected. For example, setZoom(2) on the last line will correctly make the image finish with a x2 zoom.
The demo runs on 3.18 but the bug is still present in 3.19.0-beta1.
The text was updated successfully, but these errors were encountered: