Stop double click on the zoom buttons moving the map. Fixes #818

This commit is contained in:
danzel 2012-07-26 14:32:23 +12:00
parent 8667f357f2
commit 871e8f8ee1

View File

@ -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;
}