detect-zoom
detect-zoom copied to clipboard
More Accurate Device Pixel Ratio Function
Is window.devicePixelRatio always accurate? I found this code which seems to indicate that there may be special cases to be handled.
https://github.com/tysonmatanich/GetDevicePixelRatio/blob/master/getDevicePixelRatio.js
I can confirm this doesn't work on Safari 12.x