diff --git a/web/src/components/timeline/MotionSegment.tsx b/web/src/components/timeline/MotionSegment.tsx index 0ebcffd68..980ec7ef1 100644 --- a/web/src/components/timeline/MotionSegment.tsx +++ b/web/src/components/timeline/MotionSegment.tsx @@ -179,19 +179,10 @@ export function MotionSegment({ }; const segmentClick = useCallback(() => { - if ( - startTimestamp && - setHandlebarTime && - (firstHalfSegmentWidth > 1 || secondHalfSegmentWidth > 1) - ) { - setHandlebarTime(startTimestamp); + if (setHandlebarTime) { + setHandlebarTime(segmentTime); } - }, [ - startTimestamp, - setHandlebarTime, - firstHalfSegmentWidth, - secondHalfSegmentWidth, - ]); + }, [segmentTime, setHandlebarTime]); return (