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
Improve device-pixel-content-box notifications when switching resolutions #92
Comments
IE only supports matchMedia(`(resolution: ${window.devicePixelRatio * 96}dpi)`) Something like this could work, although I'm unsure if screen densities are always based off of 96dpi in browserland. |
Therefore everything is based of off 96dpi and can use the above solution. |
|
I wouldn't assume that necessarily, but I'd say that perhaps polyfilling |
When a window is dragged across screens with different resolutions, no notification is fired when observing
device-pixel-content-box
. To improve this, usematchMedia
API to watch for resolution changes.The text was updated successfully, but these errors were encountered: