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

SyedSaifAli picture SyedSaifAli  路  18Comments

corbpaul picture corbpaul  路  18Comments

tomchentw picture tomchentw  路  37Comments

baebb picture baebb  路  21Comments

dwickstrom picture dwickstrom  路  17Comments