detect-zoom icon indicating copy to clipboard operation
detect-zoom copied to clipboard

Cross Browser Zoom and Pixel Ratio Detector

Results 25 detect-zoom issues
Sort by recently updated
recently updated
newest added

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

```ts /* Detect-zoom * ----------- * Cross Browser Zoom and Pixel Ratio Detector * Version 1.0.4 | Apr 1 2013 * dual-licensed under the WTFPL and MIT license * Maintained...

Has anyone thought of this? ``` javascript H BLAH function work(){ var w = screen.width; var content = document.getElementById("content"); var width = content.clientWidth; var height = content.clientHeight; document.getElementById("test").innerHTML = width...

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

Hi, could you tell me whether I need to poll the zoom values or there is any way to use an event model for this saving much resources?

When I am in Chrome (32.0.1700.107 m, Desktop version) and I try to resize the browser window, detect-zoom says that the zoom is applied (i.e., the zoom is not 1...

While the previous implementation used feature detection, it was using it wrong. It was, essentially using feature detection as a more advanced browser sniffer. - Updated this to detect the...

With the merge of https://github.com/tombigel/detect-zoom/pull/50, it appears that Chrome will report an incorrect value of the zoom level when inside an iframe of different width to the parent frame. `window.outerWidth`...

Last update: Aug 7 2013 **In the past few months both Mozilla and Google made some changes to their browsers that make it almost impossible to do what detect-zoom is...