Hi,
is there a way to disable the scroll wheel? In the MapOptions object specification is a property scrollwheel which can be set to false to disable zooming when the scroll wheel is used. I'm not sure how to integrate this option into react-google-maps.
It would be awesome if you could help me! Thanks in advance!
I was able to disable the scroll wheel by doing this:
<GoogleMap
...
defaultOptions={{
scrollwheel: false,
}}
...
/>
Hope this helps! :)
@kkribakaran It does! Thanks! :)
Thanks @kkribakaran for answering!
Also, 6.0.0 is released on npm beta tag now. We also have a new demo page. Feel free to try it:
https://tomchentw.github.io/react-google-maps/
Most helpful comment
I was able to disable the scroll wheel by doing this:
Hope this helps! :)