mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 14:32:17 +00:00
fix fullscreen button on pwa
This commit is contained in:
parent
e3fcf86b7c
commit
31cefc8e7a
1 changed files with 12 additions and 11 deletions
|
|
@ -210,17 +210,18 @@ export function PlayerPart(props: PlayerPartProps) {
|
||||||
<Player.Settings />
|
<Player.Settings />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{isPWA && status === playerStatus.PLAYING ? (
|
{status === playerStatus.PLAYING && (
|
||||||
<Widescreen />
|
<>
|
||||||
) : (
|
{isPWA && <Widescreen />}
|
||||||
<div
|
<div
|
||||||
onTouchStart={handleTouchStart}
|
onTouchStart={handleTouchStart}
|
||||||
onTouchEnd={handleTouchEnd}
|
onTouchEnd={handleTouchEnd}
|
||||||
className="select-none touch-none"
|
className="select-none touch-none"
|
||||||
style={{ WebkitTapHighlightColor: "transparent" }}
|
style={{ WebkitTapHighlightColor: "transparent" }}
|
||||||
>
|
>
|
||||||
{isHoldingFullscreen ? <Widescreen /> : <Player.Fullscreen />}
|
{isHoldingFullscreen ? <Widescreen /> : <Player.Fullscreen />}
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue