onMouseDrag now captures mouseUp and mouseMove events on documentElement.