mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-24 00:37:46 +00:00
fix: typo in controlBarLayerHeight variable
This commit is contained in:
parent
0d57e220e4
commit
f8aaf0e9d6
1 changed files with 4 additions and 4 deletions
|
|
@ -462,11 +462,11 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
}, []);
|
||||
|
||||
React.useEffect(() => {
|
||||
const controlbarLayerHeight = Math.round((controlBarRef.current.offsetHeight / window.innerHeight) * 100);
|
||||
if(controlBarRef.current !== null && video.state.subtitlesOffset < controlbarLayerHeight) {
|
||||
updateSettings({ subtitlesOffset: controlbarLayerHeight });
|
||||
const controlBarLayerHeight = Math.round((controlBarRef.current.offsetHeight / window.innerHeight) * 100);
|
||||
if(controlBarRef.current !== null && video.state.subtitlesOffset < controlBarLayerHeight) {
|
||||
updateSettings({ subtitlesOffset: controlBarLayerHeight });
|
||||
} else if (controlBarRef.current === null) {
|
||||
updateSettings({ subtitlesOffset: video.state.subtitlesOffset - controlbarLayerHeight });
|
||||
updateSettings({ subtitlesOffset: video.state.subtitlesOffset - controlBarLayerHeight });
|
||||
}
|
||||
}, [controlBarRef, video.state.subtitlesOffset]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue