timeline: Set 0 to 'distance' when current sample is the closest IRAP.