-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug where zooming out to 0% and trying to enlarge it gets stuck a…
…t 0% This was due to the possibility that the new X and Y dimensions are still the same (due to rounding) but the zoom is increasing. The old code would restore the zoom value, which would cause a state that you can't zoom in. The new code takes into account that, if you're zooming out, it'll restore the old zoom value, but if zooming in, allow the factor to continue to increase, even if the newX and newY don't change. Closes #159
- Loading branch information
Showing
1 changed file
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters