mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
make all motion segments clickable
This commit is contained in:
parent
380b15b286
commit
6ce0a02829
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user