Fixed auto scrolling on timeline
-now works even if the window becomes resized
Removed unused variable