From 6ce0a02829fac0d4ae70a475b605ef8d1bccf21a Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 15 Mar 2024 19:10:02 -0500 Subject: [PATCH] make all motion segments clickable --- web/src/components/timeline/MotionSegment.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) 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 (