Review Item Details
Review item details
{
+ setIsOpen(open);
+ if (!open) {
+ // short timeout to allow the mobile page animation
+ // to complete before updating the state
+ setTimeout(() => {
+ setSearch(undefined);
+ }, 300);
+ }
+ },
+ [setSearch],
+ );
+
useEffect(() => {
if (search) {
setIsOpen(search != undefined);
@@ -158,14 +172,7 @@ export default function SearchDetailDialog({
const Description = isDesktop ? DialogDescription : MobilePageDescription;
return (
- {
- if (search) {
- setSearch(undefined);
- }
- }}
- >
+
- setIsOpen(false)}>
+
Tracked Object Details
Tracked object details
diff --git a/web/src/components/player/HlsVideoPlayer.tsx b/web/src/components/player/HlsVideoPlayer.tsx
index bb0c89802..0661fb0c9 100644
--- a/web/src/components/player/HlsVideoPlayer.tsx
+++ b/web/src/components/player/HlsVideoPlayer.tsx
@@ -190,6 +190,7 @@ export default function HlsVideoPlayer({
minScale={1.0}
wheel={{ smoothStep: 0.005 }}
onZoom={(zoom) => setZoomScale(zoom.state.scale)}
+ disabled={!frigateControls}
>
{frigateControls && (