Added listener to watch for user-interaction stoping animation

Also simplified getHeight and getScrollPosY. It also handles on-touch
like on tablets