Skip to content
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

Prevent zooming from moving viewport rect out of bounds #81

Merged
merged 2 commits into from
Jul 1, 2018

Conversation

jlfwong
Copy link
Owner

@jlfwong jlfwong commented Jul 1, 2018

The problem was that the calculation of the origin bounds was done before clamping the viewport rect size

@jlfwong jlfwong merged commit 678e8b4 into master Jul 1, 2018
@jlfwong jlfwong deleted the jlfwong/fix-zoom-clamping branch July 1, 2018 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant