make all motion segments clickable

This commit is contained in:
Josh Hawkins 2024-03-15 19:10:02 -05:00
parent 380b15b286
commit 6ce0a02829

View File

@ -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 (
<div