Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

fix(overlay): stop rendering animations while hidden (#1445)

koloved16caad7a4cf7
diff --git a/src/overlay/RecordingOverlay.tsx b/src/overlay/RecordingOverlay.tsx
index 1fcfc0ff..c32f617d 100644
--- a/src/overlay/RecordingOverlay.tsx
+++ b/src/overlay/RecordingOverlay.tsx
@@ -139,6 +139,8 @@ const RecordingOverlay: React.FC = () => {
setOverflowing(false);
}, [session]);
+ if (!isVisible) return null;
+
// Re-pin when the user is within ~a line of the bottom; unpin otherwise.
const handleStreamScroll = () => {
const el = capRef.current;