Fixed issue with incorrect calculations of the offset coordinates on mouse move in Firefox