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

Clamp zoom to prevent floating point issues #121

Merged
merged 1 commit into from
Aug 5, 2018
Merged

Conversation

jlfwong
Copy link
Owner

@jlfwong jlfwong commented Aug 5, 2018

Test Plan:

Copy and paste the following into speedscope, then zoom in as far as you can into the right side of the profile.

a 1
b 100000000000000000000

Before this PR, it would hang. After this PR, it caps the zoom and doesn't hang. The cap of the zoom still allows you to zoom in really, really far.

Fixed #61

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 39.453% when pulling a77c9f7 on jlfwong/clamp-zoom into 970f1b2 on master.

@jlfwong jlfwong merged commit bca9c52 into master Aug 5, 2018
@jlfwong jlfwong deleted the jlfwong/clamp-zoom branch August 5, 2018 20:57
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.

2 participants