fix an resize issue : when the window has resized, mouseout and mousemove handlers are no longer registered.
Resize event causes several mouseUp handler to be be added. Prevent multiple registration.