A little cleanup. Also added a "stopScrolling" public method.