Restrict panning with the max and min of the timelines