React-google-maps: Disabling scrollwheel

Created on 6 Sep 2016  路  3Comments  路  Source: tomchentw/react-google-maps

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!

Most helpful comment

I was able to disable the scroll wheel by doing this:

<GoogleMap
...
  defaultOptions={{
    scrollwheel: false,
  }}
...
/>

Hope this helps! :)

All 3 comments

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/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manoj150283 picture manoj150283  路  3Comments

LukasZvikas picture LukasZvikas  路  3Comments

nwind21 picture nwind21  路  4Comments

shrimpy picture shrimpy  路  3Comments

PaulieScanlon picture PaulieScanlon  路  3Comments