Can't zoom with scrollwheel
See original GitHub issueI’ve tried reading the docs, the source, and the demo that is provided. But I can’t for the life of me figure out why I can’t get zooming to work with the scroll wheel. It works on the demo, so I can’t tell if it’s my code.
<Map
center={[
geoLocation?.latitude ?? 34.050888,
geoLocation?.longitude ?? -118.242854
]}
animate={false}
metaWheelZoomWarning={true}
zoom={(geoLocation && 18) ?? 12}
width={600}
height={400}
>
{geoLocation && <Marker
anchor={[
geoLocation.latitude,
geoLocation.longitude
]}
payload={1}
/> }
</Map>
I’ve tried removing the marker.
I don’t get the meta zoom warning overlay.
I’ve tried using Firefox and Chromium. I’m on Ubuntu Linux. I tested on Windows with Edge as well.
Versions
"pigeon-maps": "^0.14.0",
"pigeon-marker": "^0.3.4",
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
4 Easy Ways to Fix Scroll Wheel Stuck on Zoom
4 Easy Ways to Fix Scroll Wheel Stuck on Zoom · 1. Check for stuck keys. Press Windows + R to open the...
Read more >How to Fix Mouse Zooming Instead of Scrolling on Windows 10?
Method 1: Testing for stuck CTRL key ... As it turns out, one of the most common causes that will trigger this kind...
Read more >7 Ways to Fix a Mouse Wheel That Keeps Zooming Instead of ...
7 Ways to Fix a Mouse Wheel That Keeps Zooming Instead of Scrolling on Windows · 1. Ensure the Ctrl Key Isn't Stuck...
Read more >Mouse wheel is zooming instead of scrolling
There are many reasons why your mouse is only zooming instead of scrolling. Most commonly, this problem occurs when the Ctrl key gets...
Read more >Windows 10 Touch Screen Zooms Rather than Scolls
One of the most common causes that will trigger this kind of behavior is a stuck CTRL-key. If you didn't know, if you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Do like that work for me:
That can stay in the
if. Make sure to also move theunbindWheelEventevent.