Render progress bars only when visible
This commit is contained in:
@@ -50,6 +50,10 @@ const BaseMobileReaderProgressBar = ({
|
||||
return () => setIsMaximized(false);
|
||||
}, [isVisible]);
|
||||
|
||||
if (!isVisible) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<ReaderProgressBarDirectionWrapper>
|
||||
<Stack
|
||||
|
||||
Reference in New Issue
Block a user