Added comments. Fixed issue with manually moving the scroller right when the direction is 'right'