Leaflet Draggable Bug
Initializing marker with draggable = true, then disabling dragging on mousedown causes marker to be undraggable. In IE10 (and other IEs I think) the marker is still draggable on the first mousedown event.
by aidankirrane
HTML
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css">
<body>
<div id="map" ></div>
</body>
CSS
html, body, #map {
margin: 0;
width: 100%;
height: 100%;
}
JavaScript
var pos = new L.LatLng(45.5,-73.5);
var map = new L.Map('map', {
center: pos,
zoom: 16
});
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png').addTo(map);
//map.addLayer(osm);
var marker = L.marker(pos, { draggable: true});
marker.addTo(map).on('mousedown', function (e) {
});