Fix mouse handling inside a scrollable div.

See this (using the latest master):

http://jsfiddle.net/Lmgwu/

Once you scroll inside the container, mouse coordinates are handled incorrectly. This is because all scrollLeft/scrollTop values are reset once the loop reaches the root element.