You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
In current Google Maps API 3.31 scrollWheel option is marked as "not recommended"
Despite looking like
scrollwheel
istrue
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
totrue
when constructingMap
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:
jquery-locationpicker-plugin/src/locationpicker.jquery.js
Line 442 in fac8658
jquery-locationpicker-plugin/src/locationpicker.jquery.js
Line 386 in fac8658
The text was updated successfully, but these errors were encountered: