CloudMade/Leaflet — Issue #413: map.containerPointToLayerPoint not correct after mouseDrag
Author: mikolajgrajek
Created: 2012-01-02 13:26:26+00:00
State: open

code:
map.on('click', onMapClick);

function onMapClick(e) {
alert("You clicked the map at " + e.layerPoint);
}
Steps to reproduce:

1. at first XY screen position is correct (mouse click at top left screen returns (0,0) )
2. after drag event L.DomUtil.getPosition(this._mapPane) has incorrect location

zooming works fine.

Regerds