Fix call More Options menu to not autohide
This commit is contained in:
parent
4603832258
commit
23ba382f04
1 changed files with 2 additions and 2 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue