Stop double click on the zoom buttons moving the map. Fixes #818
This commit is contained in:
parent
8667f357f2
commit
871e8f8ee1
@ -21,7 +21,9 @@ L.Control.Zoom = L.Control.extend({
|
||||
L.DomEvent
|
||||
.on(link, 'click', L.DomEvent.stopPropagation)
|
||||
.on(link, 'click', L.DomEvent.preventDefault)
|
||||
.on(link, 'click', fn, context);
|
||||
.on(link, 'click', fn, context)
|
||||
.on(link, 'dblclick', L.DomEvent.stopPropagation)
|
||||
.on(link, 'dblclick', L.DomEvent.preventDefault);
|
||||
|
||||
return link;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user