diff --git a/web/src/components/CameraControlPanel.jsx b/web/src/components/CameraControlPanel.jsx index e062e1ffc..baa059e68 100644 --- a/web/src/components/CameraControlPanel.jsx +++ b/web/src/components/CameraControlPanel.jsx @@ -26,6 +26,17 @@ export default function CameraControlPanel({ camera = '' }) { setCurrentPreset(''); }; + const onSetMove = async (e, dir) => { + e.stopPropagation(); + sendPtz(`MOVE_${dir}`); + setCurrentPreset(''); + }; + + const onSetStop = async (e) => { + e.stopPropagation(); + sendPtz('STOP'); + }; + if (!ptz) { return ; } @@ -35,14 +46,22 @@ export default function CameraControlPanel({ camera = '' }) { {ptz.features.includes('pt') && (
- +
- - + +
- +
)}