simplegeo / polymaps

Polymaps is a free JavaScript library for making dynamic, interactive maps in modern web browsers.
http://polymaps.org/
Other
1.6k stars 213 forks source link

Do not dispatch redundant events. #8

Open mbostock opened 14 years ago

mbostock commented 14 years ago

Currently, when the map's center or zoom is set, it always dispatches a "move" event. This is true even if the center or zoom did not change. The map should detect whether its state has changed before dispatching an event to avoid unnecessary work.

akidee commented 13 years ago

I am really wondering why this event is triggered onmouseup - without having moved the map at all.