diff --git a/web/src/components/overlay/detail/TrackingDetails.tsx b/web/src/components/overlay/detail/TrackingDetails.tsx index 026c0a1b6..8b0793746 100644 --- a/web/src/components/overlay/detail/TrackingDetails.tsx +++ b/web/src/components/overlay/detail/TrackingDetails.tsx @@ -867,6 +867,7 @@ export function TrackingDetails({ getZoneColor={getZoneColor} effectiveTime={effectiveTime} isTimelineActive={isWithinEventRange} + annotationOffset={annotationOffset} /> ); @@ -890,6 +891,7 @@ type LifecycleIconRowProps = { getZoneColor: (zoneName: string) => number[] | undefined; effectiveTime?: number; isTimelineActive?: boolean; + annotationOffset: number; }; function LifecycleIconRow({ @@ -900,6 +902,7 @@ function LifecycleIconRow({ getZoneColor, effectiveTime, isTimelineActive, + annotationOffset, }: LifecycleIconRowProps) { const { t } = useTranslation(["views/explore", "components/player"]); const { data: config } = useSWR("config"); @@ -1206,7 +1209,7 @@ function LifecycleIconRow({ className="cursor-pointer" onSelect={async () => { const resp = await axios.post( - `/${item.camera}/plus/${item.timestamp}`, + `/${item.camera}/plus/${item.timestamp + annotationOffset / 1000}`, ); if (resp && resp.status == 200) {