move .leaflet-touch disable code elsewhere due to leaflet update
This commit is contained in:
parent
6ae559e26a
commit
86b090a29f
2 changed files with 7 additions and 13 deletions
|
@ -1,11 +1,3 @@
|
|||
(function () {
|
||||
if(L.Browser.chrome && !('ontouchstart' in window)) {
|
||||
L.Browser.pointer = false;
|
||||
L.Browser.touch = false;
|
||||
}
|
||||
}());
|
||||
|
||||
|
||||
editor = {
|
||||
options: {
|
||||
position: 'bottomright'
|
||||
|
@ -22,6 +14,9 @@ editor = {
|
|||
editable: true,
|
||||
closePopupOnClick: false
|
||||
});
|
||||
if (L.Browser.chrome && !('ontouchstart' in window)) {
|
||||
$('.leaflet-touch').removeClass('leaflet-touch');
|
||||
}
|
||||
editor.map.on('click', function () {
|
||||
editor.map.doubleClickZoom.enable();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue