set L.Browser.touch = false for leaflet-editable
This commit is contained in:
parent
a58bf3753d
commit
5ee98ccdc4
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ editor = {
|
||||||
});
|
});
|
||||||
if (L.Browser.chrome && !('ontouchstart' in window)) {
|
if (L.Browser.chrome && !('ontouchstart' in window)) {
|
||||||
$('.leaflet-touch').removeClass('leaflet-touch');
|
$('.leaflet-touch').removeClass('leaflet-touch');
|
||||||
|
L.Browser.touch = false;
|
||||||
}
|
}
|
||||||
editor.map.on('click', function () {
|
editor.map.on('click', function () {
|
||||||
editor.map.doubleClickZoom.enable();
|
editor.map.doubleClickZoom.enable();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue