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 zoom function

See original GitHub issue

great script! thank you

i just try to disable the zoom function on the images, when there isn’t enough space to display it

i tried :

allowUserZoom: false,

but it doesn’t work

anybody has an idea ?

thank you

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

20reactions
chodorowiczcommented, Jul 15, 2015

I’ve managed to disable all zoom on desktop using following settings (notice return item.initialZoomLevel;)

{
  zoomEl: false,
  maxSpreadZoom: 1,
  getDoubleTapZoom: function(isMouseClick, item) {
    return item.initialZoomLevel;
  }
  pinchToClose: false
}
.pswp--zoom-allowed .pswp__img
  cursor default !important
0reactions
Grawlcommented, Jul 27, 2020

grab cursor for mouse dragging when zoom is disabled

.pswp--zoom-allowed
	.pswp__img
		cursor grab
		&:active
			cursor grabbing
Read more comments on GitHub >

github_iconTop Results From Across the Web

how to disable Zoom-in and Zoom-out feature in windows 10
Hey, As part of our windows 10 LTSC configuration, we would like to disable all multi touch features such as pinch zoom and...
Read more >
How to disable Pinch Zoom option in Windows 10
To disable the pinch zoom feature in Windows 10: Press Start button on the keyboard, type Mouse & Touchpad settings and select the...
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 Enable or Disable Pinch Zoom on a Alps Multi-Touch ...
Follow the instructions to learn how to enable or disable the Pinch Zoom function the Alps Multi-Touch Touchpad installed on some Latitude ...
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