Safari Zoom in iOS15

How do I disable double tap to Zoom in Safari iOS15.I am writing a progresive web app that uses btn.ondblClick Javascript but don't want my screen to Zoom when doing this. Any suggestions much appreciated

  • have you found a solution?

Add a Comment

Replies

Is your ondblClick function something like: function myHandler(event) { //Your code here

return false; //Stop the propagation }

That should trigger event.preventDefault() and event.stopPropagation(); The return of an event handler specifies whether the default action should also happen.

  • Thank you Paul..your suggestion sounds very promising and I will try it. I also learned something! Thank you!

Add a Comment