Fix player menu not disappearing

This commit is contained in:
2025-12-19 17:30:55 +01:00
parent 452e4f32b4
commit cf4a592804
2 changed files with 45 additions and 44 deletions
+44 -43
View File
@@ -50,50 +50,51 @@ export const Controls = ({
player={player}
forceShow={hover || menuOpenned}
{...css(StyleSheet.absoluteFillObject)}
/>
<Back
name={name}
{...css(
{
position: "absolute",
top: 0,
left: 0,
right: 0,
bg: (theme) => theme.darkOverlay,
paddingTop: insets.top,
paddingLeft: insets.left,
paddingRight: insets.right,
},
hoverControls,
>
<Back
name={name}
{...css(
{
position: "absolute",
top: 0,
left: 0,
right: 0,
bg: (theme) => theme.darkOverlay,
paddingTop: insets.top,
paddingLeft: insets.left,
paddingRight: insets.right,
},
hoverControls,
)}
/>
{isTouch && (
<MiddleControls player={player} previous={previous} next={next} />
)}
/>
{isTouch && (
<MiddleControls player={player} previous={previous} next={next} />
)}
<BottomControls
player={player}
name={subName}
poster={poster}
chapters={chapters}
previous={previous}
next={next}
setMenu={setMenu}
{...css(
{
// Fixed is used because firefox android make the hover disappear under the navigation bar in absolute
// position: Platform.OS === "web" ? ("fixed" as any) : "absolute",
position: "absolute",
bottom: 0,
left: 0,
right: 0,
bg: (theme) => theme.darkOverlay,
paddingLeft: insets.left,
paddingRight: insets.right,
paddingBottom: insets.bottom,
},
hoverControls,
)}
/>
<BottomControls
player={player}
name={subName}
poster={poster}
chapters={chapters}
previous={previous}
next={next}
setMenu={setMenu}
{...css(
{
// Fixed is used because firefox android make the hover disappear under the navigation bar in absolute
// position: Platform.OS === "web" ? ("fixed" as any) : "absolute",
position: "absolute",
bottom: 0,
left: 0,
right: 0,
bg: (theme) => theme.darkOverlay,
paddingLeft: insets.left,
paddingRight: insets.right,
paddingBottom: insets.bottom,
},
hoverControls,
)}
/>
</TouchControls>
</View>
);
};
+1 -1
View File
@@ -20,8 +20,8 @@ import { Back } from "./controls/back";
import { toggleFullscreen } from "./controls/misc";
import { PlayModeContext } from "./controls/tracks-menu";
import { useKeyboard } from "./keyboard";
import { enhanceSubtitles } from "./subtitles";
import { useProgressObserver } from "./progress-observer";
import { enhanceSubtitles } from "./subtitles";
const clientId = uuidv4();