Merge pull request #611 from webadderallorg/fix/webcam-hud-preview-bounds

fix(recording): preserve webcam preview HUD bounds
This commit is contained in:
Phạm Thị Minh Hồng
2026-05-29 01:15:13 +07:00
committed by GitHub
6 changed files with 84 additions and 2 deletions
+10
View File
@@ -152,6 +152,16 @@ function LaunchWindowContent() {
hudOverlayMousePassthroughSupported,
});
useEffect(() => {
window.electronAPI?.hudOverlaySetWebcamPreviewVisible?.(showRecordingWebcamPreview);
}, [showRecordingWebcamPreview]);
useEffect(() => {
return () => {
window.electronAPI?.hudOverlaySetWebcamPreviewVisible?.(false);
};
}, []);
const {
recordingHudOffset,
isHudDragging,