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.

Partial scroll wheel zoom disabling

See original GitHub issue

It was suggested that zooming by mouse wheel could work when scrollWheelZoom is set to false, but a modifier key (e.g. shift) is pressed. This way page scrolling with mouse wheel is not affected, but users still have a way to quickly zoom out.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
vincent3569commented, Oct 4, 2018

hi is there some news on that issue? the googlemap behavior on this issue is OK for me: if mousse wheel zoom is disabled, so ctrl + mousse wheel in enabled and users can zoom in or zoom out when mouse is over a map.

2reactions
DanielHeathcommented, Apr 23, 2014

Got a really nice work-around for this (I’ve used underscore.js but you don’t have to):

  # Only enable zoom if it is not invoked for 1 second
  zoomOn = _.debounce((-> map.scrollWheelZoom.enable()), disableZoomOnScrollDuration)
  zoomOff = ->
    map.scrollWheelZoom.disable()
    zoomOn()

  $(window).on 'scroll', zoomOff
Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable “Ctrl”+mouse wheel zooming in Chrome? - Super User
I would like to either decouple Ctrl +mouse wheel from zoom, or disable zoom functionality altogether. This is possible on Firefox by using...
Read more >
Re: Turn Off Scroll Wheel Zooming - Adobe Support Community
Open Settings > Click on "Universal Access" > Select the "Mouse & Trackpad" tab > Click the "Mouse Options..." button > Deselect "Scrolling"....
Read more >
Disable scroll wheel zoom on Leaflet? - Grav Community Forum
Anyone have advice on disabling scroll wheel/mousepad zooming when using the Map marker leaflet plugin?
Read more >
Mouse wheel is zooming instead of scrolling - YouTube
When they use the scroll wheel of their mice, it zooms in and out instead of ... 1] Check your Ctrl key 2]...
Read more >
Disabling Zoom with Scroll Wheel in Firefox - Sign In
Resolution · Open Firefox. · In the address bar type in about:config and press Enter . · Click I'll be careful, I promise....
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