Fix call More Options menu to not autohide

This commit is contained in:
ayumi-signal
2023-11-16 14:59:40 -08:00
committed by GitHub
parent 4603832258
commit 23ba382f04

View File

@@ -263,14 +263,14 @@ export function CallScreen({
}, [setLocalPreview, setRendererCanvas]);
useEffect(() => {
if (!showControls || stickyControls || controlsHover) {
if (!showControls || showMoreOptions || stickyControls || controlsHover) {
return noop;
}
const timer = setTimeout(() => {
setShowControls(false);
}, 5000);
return clearTimeout.bind(null, timer);
}, [showControls, stickyControls, controlsHover]);
}, [showControls, showMoreOptions, stickyControls, controlsHover]);
useEffect(() => {
const handleKeyDown = (event: KeyboardEvent): void => {