I have a leaflet map created in R and which will laterr be implemented as iframe on a website. When scolling with one finger the map scrolls as well. I would like the map to respond to two fingers only on mobiles. Adding Zoom Control or dragging option to leaflet() did not work. I found references to "dragging: !L.Browser.mobile" in javascript.

How/where would I implement this in R leaflet? leaflet(option=dragging:...) gives an errors. Perhaps there also another solution?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.