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

should use screen.width/window.innerWidth for chrome #58

Open
tsalufe opened this issue Dec 14, 2015 · 2 comments
Open

should use screen.width/window.innerWidth for chrome #58

tsalufe opened this issue Dec 14, 2015 · 2 comments

Comments

@tsalufe
Copy link

tsalufe commented Dec 14, 2015

because window.outerWidth ( and outerHeight) is not correct at page load or orientation change on android.On iOS, outerWidth seems to be 0.

@nigon1
Copy link

nigon1 commented Sep 9, 2017

because window.outerWidth ( and outerHeight) is not correct at page load or orientation change on android.On iOS, outerWidth seems to be 0.

@qb20nh
Copy link

qb20nh commented Nov 29, 2021

On non-maximized windows, you can detect browser zoom level(which is independent of system dpi) by resizing window and observing difference in ratio of change between innerWidth/innerHeight and outerWidth/innerHeight.

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

No branches or pull requests

3 participants