0

Is there any way to know, at a given moment, if the page is currently zoomed-in?

I don't need to know the zoom level, and I don't need to catch the event: I simply need a cross browser solution that allows to know if the page is zoomed or not (e.g. a function that returns true or false). Unfortunately the solutions that I have found are completely outdated or work only on some browsers.

I need that in order to block gesture detection while the page is zoomed.

collimarco
  • 29,854
  • 31
  • 89
  • 120
  • 1
    Maybe a duplicate: https://stackoverflow.com/questions/995914/catch-browsers-zoom-event-in-javascript – Armedin Kuka Nov 27 '19 at 14:34
  • Does this answer your question? [Catch browser's "zoom" event in JavaScript](https://stackoverflow.com/questions/995914/catch-browsers-zoom-event-in-javascript) – Aditya Prakash Nov 27 '19 at 14:50

0 Answers0