I have a problem in JavaScript with map getting stuck in pan mode.
- I am using maps in desktop application (in Internet Explorer).
- Drag map and take mouse outside of browser control and then release mouse button.
- Enter mouse again in browser control, the map is stuck in pan mode -- when I move arrow, map also moves with arrow even while the mouse button is not held down.

How can I stop this from happening?