Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollWheel: true default option is "not recommended" and causes compatibility behavior to trigger #135

Open
kolen opened this issue Mar 13, 2018 · 0 comments

Comments

@kolen
Copy link

kolen commented Mar 13, 2018

In current Google Maps API 3.31 scrollWheel option is marked as "not recommended"

scrollwheel

Type: boolean

If false, disables zooming on the map using a mouse scroll wheel. The scrollwheel is enabled by default.

Note: This property is not recommended. To disable zooming using scrollwheel, you can use the gestureHandling property, and set it to either "cooperative" or "none".

Despite looking like scrollwheel is true by default in Google Maps, setting it to true explicitly turns on "legacy compatibility behavior": gestureHandling is completely ignored.

By default, in current versions of Google Maps, mouse wheel zooms only if ctrl/cmd is pressed, if it detects that page is scrollable. Setting scrollwheel to true when constructing Map disables this, which makes scrolling of page more painful (locationpicker is often used for editors such as in admin UIs where there are lots of fields in addition to location editor).

It's set here:

scrollwheel: settings.scrollwheel,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant