Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Mar 18, 2024
1 parent 39ca997 commit abacef9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/views/events/EventView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,8 @@ function MotionReview({
[selectedRangeIdx, timeRangeSegments],
);

const [scrubbing, setScrubbing] = useState(false);

// move to next clip

useEffect(() => {
Expand Down Expand Up @@ -670,6 +672,7 @@ function MotionReview({
timeRange={currentTimeRange}
startTime={startTime}
cameraPreviews={relevantPreviews || []}
isScrubbing={scrubbing}
onControllerReady={(controller) => {
videoPlayersRef.current[camera.name] = controller;
}}
Expand All @@ -694,6 +697,7 @@ function MotionReview({
motion_events={motionData ?? []}
severityType="significant_motion"
contentRef={contentRef}
onHandlebarDraggingChange={(scrubbing) => setScrubbing(scrubbing)}
/>
</div>
</>
Expand Down
1 change: 1 addition & 0 deletions web/src/views/events/RecordingView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ export function RecordingView({
timeRange={currentTimeRange}
cameraPreviews={allPreviews ?? []}
startTime={startTime}
isScrubbing={scrubbing}
onControllerReady={(controller) => {
previewRefs.current[cam] = controller;
controller.scrubToTimestamp(startTime);
Expand Down

0 comments on commit abacef9

Please sign in to comment.