mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 12:45: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(() => {
|
const segmentClick = useCallback(() => {
|
||||||
if (
|
if (setHandlebarTime) {
|
||||||
startTimestamp &&
|
setHandlebarTime(segmentTime);
|
||||||
setHandlebarTime &&
|
|
||||||
(firstHalfSegmentWidth > 1 || secondHalfSegmentWidth > 1)
|
|
||||||
) {
|
|
||||||
setHandlebarTime(startTimestamp);
|
|
||||||
}
|
}
|
||||||
}, [
|
}, [segmentTime, setHandlebarTime]);
|
||||||
startTimestamp,
|
|
||||||
setHandlebarTime,
|
|
||||||
firstHalfSegmentWidth,
|
|
||||||
secondHalfSegmentWidth,
|
|
||||||
]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user