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

should use screen.width/window.innerWidth for chrome

Open tsalufe opened this issue 9 years ago • 2 comments

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

tsalufe avatar Dec 14 '15 17:12 tsalufe

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

nigon1 avatar Sep 09 '17 18:09 nigon1

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.

qb20nh avatar Nov 29 '21 23:11 qb20nh