scroll on timeline fixed in function