mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-06 19:19:50 +00:00
Update SkipSegmentButton.tsx
This commit is contained in:
parent
427828d714
commit
64a241e2ed
1 changed files with 2 additions and 3 deletions
|
|
@ -182,9 +182,8 @@ function SkipSegmentButton(props: {
|
|||
`bottom-[calc($1 + ${verticalOffset}px)]`,
|
||||
);
|
||||
|
||||
let show = false;
|
||||
if (showingState === "always") show = true;
|
||||
else if (showingState === "hover" && props.controlsShowing) show = true;
|
||||
// Show button whenever we're in a segment (not only on hover after first 10s)
|
||||
const show = showingState === "always" || showingState === "hover";
|
||||
|
||||
return (
|
||||
<Transition
|
||||
|
|
|
|||
Loading…
Reference in a new issue