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

Fix inverted logic in devicePixelRatio test #84

Merged
merged 1 commit into from Aug 18, 2017
Merged

Fix inverted logic in devicePixelRatio test #84

merged 1 commit into from Aug 18, 2017

Conversation

ghost
Copy link

@ghost ghost commented Aug 17, 2017

The condition in the ternary operator is true if there's any
reason NOT to use the window.devicePixelRatio. Put the default
in the 'true' arm, and devicePixelRatio in the 'false' condition
where it's useful.

Tested on iOS with Safari's remote debugger, verified that dpr==2.

The condition in the ternary operator is true if there's any
reason NOT to use the window.devicePixelRatio. Put the default
in the 'true' arm, and devicePixelRatio in the 'false' condition
where it's useful.

Tested on iOS with Safari's remote debugger, verified that dpr==2.
@drewnoakes drewnoakes merged commit f33ad75 into joewalnes:master Aug 18, 2017
drewnoakes added a commit that referenced this pull request Aug 25, 2017
@drewnoakes
Copy link
Collaborator

Published in 1.30.0 on NPM/Bower. Thanks very much!

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