set L.Browser.touch = false for leaflet-editable

This commit is contained in:
Laura Klünder 2017-11-03 12:11:38 +01:00
parent a58bf3753d
commit 5ee98ccdc4

View file

@ -16,6 +16,7 @@ editor = {
});
if (L.Browser.chrome && !('ontouchstart' in window)) {
$('.leaflet-touch').removeClass('leaflet-touch');
L.Browser.touch = false;
}
editor.map.on('click', function () {
editor.map.doubleClickZoom.enable();