Gesture for Mobile
Would it be possible to integrate a checkbox for:
Which means that on a mobile device, the user must swipe with one finger to scroll the page and two fingers to pan the map.
Right now, it is only possible to deactivate or activate the scroll function. P.S. I like your extension!
#1 Updated by Marc Hirdes over 3 years ago
thanks for your request. I have taken a look in the API
This setting controls how gestures on the map are handled. Allowed values:
"cooperative": Two-finger touch gestures pan and zoom the map, as do all mouse gestures. One-finger touch gestures are not handled by the map. In this mode, the map cooperates with the page, so that one-finger touch gestures can pan the page.
"greedy": All touch gestures pan or zoom the map.
"none": The map cannot be panned or zoomed by user gestures.
"auto": (default) Gesture handling is either cooperative or greedy, depending on whether the page is scrollable or not.
That means the default behaviour is already cooperative, when the page is scrollable. I've tested this, too. So even if the map scroll is disabled or not, this works like you want it. Or did I understand something wrong in your request? The next two weeks I am out of office. I can answer you today or when I am back.
#2 Updated by Sascha Bucher Bucher over 3 years ago
Thanks for your response. I deactivated "Scroll-Zoom" and aktivated "Verschiebbare Karte" and that did the job. I may misunderstood the settings. But anyway, glad you gave me the tip that it already behaves correct. So I wish you a wonderfull holiday (if this two weeks out of office are holiday ;-).