cutting-room-floor / wax

DEPRECATED: consult mapbox.js
https://github.com/mapbox/mapbox.js
BSD 3-Clause "New" or "Revised" License
167 stars 42 forks source link

Dragging a map can keep _downLock to true in interaction #210

Open fmassot opened 12 years ago

fmassot commented 12 years ago

Hi, When you drag the map and release the mouse click outside the map div, _downLock variable remains at true in interaction object. (Tested on google maps/leaflet/modest maps on http://mapbox.com/wax/)

The ideal would be to use an event like 'mouseleave' to trigger the off function of interaction. But I didn't see this event in bean.js (or I missed it).

François

tmcw commented 12 years ago

mouseenter/mouseleave are proprietary IE events (with partial reimplementations in jQuery). Might be able to work around this situation by binding clicks to the document rather than the map.