0

I'm developing this app http://test.app.upet.co and I need to disable the two finger pinch.

This is the page before the two finger pinch

Before two finger pinch

And this is the page after the two finger pinch

enter image description here

Thank you very much!

Daniel F Jaramillo
  • 413
  • 1
  • 5
  • 12
  • 1
    Why would you want to disable it? If the user wants to zoom out why prevent it? – nnnnnn Jun 30 '17 at 03:25
  • Hi there, I think using the tag will get what you want. Have a look at the related explanation: https://stackoverflow.com/questions/22777734/what-is-initial-scale-user-scalable-minimum-scale-maximum-scale-attribute-in – Kenrick Jun 30 '17 at 03:25
  • 1
    @nnnnnn—completely agree. Right up there with disabling zoom and landscape mode, totally user unfriendly. – RobG Jun 30 '17 at 03:31
  • 1
    Because the client asked for it sadly, @Kenrick I already have the meta tag on my page [Page](http://test.app.upet.co/signin) but it does not work – Daniel F Jaramillo Jun 30 '17 at 04:43
  • No. Zooming in makes parts of my webpage inaccessible. I was to disable it and as a web developer that decision must be left with me not apple. Stop selling kool-aid masquerading as an accessibilty feature. – Marvin Danig Mar 31 '18 at 15:36

1 Answers1

0

<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> add this to your head <html><head>

refer https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html

Josh Lin
  • 2,397
  • 11
  • 21