CloudMade/Leaflet — Issue #434: Marker click event stops firing if the marker is ever moved by dragging
Author: mehmeta
Created: 2012-01-13 21:40:32+00:00
State: open

In src/layer/marker/Marker.js line 134:
```js
if (this.dragging && this.dragging.moved()) { return; }
```
As title explains, if you create a marker, add a click handler, enable dragging. drag the marker and disable dragging, you're effectively preventing the marker 'click' event from ever firing again. Genuinely curious, why is this necessary? The workaround is setting _moved to false:
```js
marker.dragging._draggable._moved = false;
```
but it's obviously hackish.