calculating the offset using http://www.jacklmoore.com/notes/mouse-position/ seems more reliable than using what the browser provides.
Saving the bounding rectangle from the time of mousedown ensures no it is always calculated against the same rectangle.
calculating the offset using http://www.jacklmoore.com/notes/mouse-position/ seems more reliable than using what the browser provides. Saving the bounding rectangle from the time of mousedown ensures no it is always calculated against the same rectangle.