disable pan/pinch/zoom when native browser video controls are displayed

This commit is contained in:
Josh Hawkins 2024-10-25 07:00:23 -05:00
parent 006738a918
commit 2714dac78e

View File

@ -190,6 +190,7 @@ export default function HlsVideoPlayer({
minScale={1.0}
wheel={{ smoothStep: 0.005 }}
onZoom={(zoom) => setZoomScale(zoom.state.scale)}
disabled={!frigateControls}
>
{frigateControls && (
<VideoControls