mousemove events need to propagate through path layers otherwise you cannot drag the map through them. Refs #1046

This commit is contained in:
danzel 2012-11-06 10:28:34 +13:00
parent 333f74eb07
commit 1a2764ae0a

View File

@ -134,7 +134,9 @@ L.Path = L.Path.extend({
if (e.type === 'contextmenu') {
L.DomEvent.preventDefault(e);
}
L.DomEvent.stopPropagation(e);
if (e.type !== 'mousemove') {
L.DomEvent.stopPropagation(e);
}
}
});