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]);
|
}, [setLocalPreview, setRendererCanvas]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!showControls || stickyControls || controlsHover) {
|
if (!showControls || showMoreOptions || stickyControls || controlsHover) {
|
||||||
return noop;
|
return noop;
|
||||||
}
|
}
|
||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
setShowControls(false);
|
setShowControls(false);
|
||||||
}, 5000);
|
}, 5000);
|
||||||
return clearTimeout.bind(null, timer);
|
return clearTimeout.bind(null, timer);
|
||||||
}, [showControls, stickyControls, controlsHover]);
|
}, [showControls, showMoreOptions, stickyControls, controlsHover]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleKeyDown = (event: KeyboardEvent): void => {
|
const handleKeyDown = (event: KeyboardEvent): void => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue