If you look at how the editor works, it does one more thing that this doesn't.

If I mouse down on the scrubber in the editor, and keep it held, and move the mouse around, I no longer need to keep the mouse inside the div, until I let go.