You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Retina displays will always have values double that of regular displays. I am only interested in desktop, as I anticipate mobile is much more difficult.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than zoom-level. Paste the link to your JSFiddle or CodeSandbox example below:
I am looking at https://codesandbox.io/s/zoomlevel-live-example-841ns / https://841ns.csb.app/, as well as testing in the console.
What is the expected behavior?
Ideally a retina display can be identified and its value halved so that retina and non-retina displays give the same value.
Which versions of zoom-level, and which browser / OS / node version are affected by this issue? Did this work in previous versions of zoom-level?
zoom-level: Latest
Browser: Chrome 81.0.4044.122 / FF 75.0
OS: MBP 16 on 10.15.
The text was updated successfully, but these errors were encountered:
On my Retina display I got 2x the correct value. I found this snippet, which does not suffer from this problem, but has its own issues. Namely, that it is based on width and so devtools and such can break it.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Retina displays will always have values double that of regular displays. I am only interested in desktop, as I anticipate mobile is much more difficult.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than
zoom-level
. Paste the link to your JSFiddle or CodeSandbox example below:I am looking at https://codesandbox.io/s/zoomlevel-live-example-841ns / https://841ns.csb.app/, as well as testing in the console.
What is the expected behavior?
Ideally a retina display can be identified and its value halved so that retina and non-retina displays give the same value.
Which versions of
zoom-level
, and which browser / OS / node version are affected by this issue? Did this work in previous versions ofzoom-level
?zoom-level: Latest
Browser: Chrome 81.0.4044.122 / FF 75.0
OS: MBP 16 on 10.15.
The text was updated successfully, but these errors were encountered: