Currently unmounting the Draw component (or changing the position) does not deregister the event callbacks, so next time the component is mounted you get multiple event callbacks.
This change deregisters the calls backs on unmount or position change.
Currently unmounting the Draw component (or changing the position) does not deregister the event callbacks, so next time the component is mounted you get multiple event callbacks.
This change deregisters the calls backs on unmount or position change.