Jump to content

danielcharles

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by danielcharles

  1. Hello, this will prevent any zoom action by the user in ios safari and also prevent the "zoom to tabs" feature: document.addEventListener('gesturestart', function(e) { e.preventDefault(); // special hack to prevent zoom-to-tabs gesture in safari document.body.style.zoom = 0.99; }); document.addEventListener('gesturechange', function(e) { e.preventDefault(); // special hack to prevent zoom-to-tabs gesture in safari document.body.style.zoom = 0.99; }); document.addEventListener('gestureend', function(e) { e.preventDefault(); // special hack to prevent zoom-to-tabs gesture in safari document.body.style.zoom = 0.99; });
×
×
  • Create New...