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.

Preventing zoom on click?

See original GitHub issue

I would like to disable zoom in on click on some conditions.

I tried to prevent zoom in with click event listeners with

 e.preventDefault();
 e.stopPropagation();
 e.stopImmediatePropagation();

However, it did not stop event. I know clickToZoom can disable click event but it disables permanently I believe.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
intelcodercommented, Feb 3, 2017

This is the way I used

this.viewer.gestureSettingsMouse.clickToZoom = true/false
1reaction
danomatikacommented, May 20, 2020

I’d suggest adding this as one of the official examples on the OSD website. After doing some searching and trying a couple things out, this was the exact answer for what I needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable double-tap "zoom" option in browser on touch devices
If you only want to prevent double click zoom across all devices, try setting the dblclick event listener of ...
Read more >
How to Disable Zoom on a Mobile Web Page With HTML and ...
To disable the zooming option, you can use the Surefox browser, but still, the page will zoom in and out by double-tapping on...
Read more >
How to disable zoom on a mobile web page using CSS?
To disable the zooming option with the multi-touch gesture we can use surefox browser but still, a user can zoom in or out...
Read more >
How to Keep Uninvited Guests Out of Your Zoom Meeting
To prevent participants from screen sharing during a call, using the host controls at the bottom, click the arrow next to “Share Screen”...
Read more >
Prevent iPhone from zooming in web-app with HTML
Prevent zooming all together by adding this meta tag to your head tag. This tells the mobile browser to use the same width...
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