question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable Pinch to Zoom

See original GitHub issue

Is your feature request related to a problem? If so, Please describe. Hi, I’m trying to create a PWA of sorts by embedding my react app within a webview. Was wondering if we could disable pinch to zoom to create a more native-feeling experience. Even with bounce={false}, I am still able to pinch out to zoom out on iOS/iPadOS. Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

20reactions
Stratecommented, Oct 21, 2020

Just add <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> in your html

8reactions
BruceSuperProgramercommented, May 18, 2021

Code below will disable pinch to zoom if you injected it to WebView const jsCode = “let meta = document.createElement(‘meta’); meta.setAttribute(‘name’, ‘viewport’); meta.setAttribute(‘content’, ‘width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0’); document.getElementsByTagName(‘head’)[0].appendChild(meta);”;

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable Pinch Zoom option in Windows 10
From the left side panel, click Pinch Zoom option and uncheck the box Enable Pinch Zoom. Click on Apply and OK. Close the...
Read more >
How to Enable or Disable Pinch Zoom on a Alps Multi-Touch ...
Touch or click the box next to Pinch Zoom to Enable or Disable the Pinch Zoom function. Touch or click Save. Restart your...
Read more >
Turn On or Off Pinch to Zoom on Touchpad in Windows 11/10
Launch Windows Settings. Then go to Devices > Touchpad. Now, untick Pinch to Zoom. That's how you can disable Pinch to Zoom on...
Read more >
Disable Pinch Zoom Feature in Windows 10 - TechCult
Method 1: Disable Pinch Zoom Feature for Synaptics Touchpad · 1.Press Windows Key + X then select Control Panel. · 2.Now click Hardware...
Read more >
Disable Pinch and Zoom on Windows Devices - Elo Support
Pinch and Zoom is a feature of Windows Pen & Touch. To disable this feature on Elo's Windows AIO touchcomputers and multi-touch monitors ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found