hansemannn / titanium-googlemaps

🗺 Use the Google Maps SDK in Titanium
Other
87 stars 26 forks source link

setting scrollGesture = false isn't working #142

Closed grantges closed 3 years ago

grantges commented 3 years ago

Per the documentation, you can enable / disable scrolling by setting the scrollGesture property:

I'm looking to prevent the user enabled ability to scroll by doing the following.

mapview.scrollGesture = false;

However, even with the property set, the user is able to move the map around which isn't the desired behavior.

grantges commented 3 years ago

Looking through the code, it looks like the function for this is available - but not the property as referenced here:

https://github.com/hansemannn/titanium-googlemaps#enable--disable-gestures

Work around for now is to use the function mapview.setScrollGestures(false) for now.

grantges commented 3 years ago

after more investigation this seems to be caused by not specifying the version of the module - it was picking up an older version vs the latest (6.1.0) that I had installed. Forcing version addressed the issue. closing the bug.

hansemannn commented 3 years ago

Cool!