NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
always use full resolution time when dragging (#10939)
Josh Hawkins7a7ae81d50fc
diff --git a/web/src/components/timeline/ReviewTimeline.tsx b/web/src/components/timeline/ReviewTimeline.tsxindex 2da91414d2..e72fa34e0e 100644--- a/web/src/components/timeline/ReviewTimeline.tsx+++ b/web/src/components/timeline/ReviewTimeline.tsx@@ -107,6 +107,7 @@ export function ReviewTimeline({showDraggableElement: showHandlebar,draggableElementTime: handlebarTime,setDraggableElementTime: setHandlebarTime,+ alignSetTimeToSegment: true,initialScrollIntoViewOnly: onlyInitialHandlebarScroll,timelineDuration,timelineCollapsed: timelineCollapsed,diff --git a/web/src/hooks/use-draggable-element.ts b/web/src/hooks/use-draggable-element.tsindex 4367907f6b..75f733aeb9 100644--- a/web/src/hooks/use-draggable-element.ts+++ b/web/src/hooks/use-draggable-element.ts@@ -323,21 +323,21 @@ function useDraggableElement({}}+ const setTime = alignSetTimeToSegment+ ? targetSegmentId+ : targetSegmentId + segmentDuration * (offset / segmentHeight);+updateDraggableElementPosition(newElementPosition,- targetSegmentId,+ setTime,false,false,);if (setDraggableElementTime) {- if (alignSetTimeToSegment) {- setDraggableElementTime(targetSegmentId);- } else {- setDraggableElementTime(- targetSegmentId + segmentDuration * (offset / segmentHeight),- );- }+ setDraggableElementTime(+ targetSegmentId + segmentDuration * (offset / segmentHeight),+ );}if (draggingAtTopEdge || draggingAtBottomEdge) {