Fixed incorrect auto-scrolling behavior.

In the auto-scrolling code, the offset point was being computed incorrectly.  The code was not transforming values into the right hierarchical spaces, and there were errors in how the positions themselves were computed.