bug fix for auto scroll
Merge pull request #326 from saumishr/master

bug fix for auto scroll