Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Using information gathered largely through this question: <a href="https://stackoverflow.com/questions/995914/catch-browsers-zoom-event-in-javascript">Catch browser's "zoom" event in JavaScript</a></p> <p>I've been playing around with attempting to track browser zoom for the last day or so, and this is about as close as you can get without an onZoom standard event that you can kill.</p> <pre><code>document.observe('keydown', function (ev) { var key, keys = ['0']; var isApple = (navigator.userAgent.indexOf('Mac') &gt; -1), isCmmd, isCtrl; if (window.event) { key = window.event.keyCode; isCtrl = window.event.ctrlKey ? true : false; isCmmd = window.event.metaKey ? true : false; } else { key = e.which; isCtrl = ev.ctrlKey ? true : false; isCmmd = ev.metaKey ? true : false; } if (isCtrl || (isCmmd &amp;&amp; isApple)) { switch (key) { case 48: // 0 // do not stop, or user could get stuck break; case 187: // + case 189: // - ev.stop() break; default: break; } } }); </code></pre> <p>Unfortunately, and I've been playing with this for a while now, and there isn't any surefire way to really disable it. The zoom options are still available through main application menus, so until a real method of tracking zoom (including after page reloads, which mostly impossible right now, and, besides, webkit exhibits some odd behavior when you attempt to track zoom).</p> <p>Although many people would like to keep browser zoom more hidden, I can personally see the possible benefits of being able to observe zoom separately from resize, as they are mostly indistinguishable at this point (and that's if for no other reason at all).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload