mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Tweak shouldShowNextEpisodeButton percentage
This commit is contained in:
parent
5d721adb91
commit
478b24e627
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ function shouldShowNextEpisodeButton(
|
||||||
const percentage = time / duration;
|
const percentage = time / duration;
|
||||||
const secondsFromEnd = duration - time;
|
const secondsFromEnd = duration - time;
|
||||||
if (secondsFromEnd <= 30) return "always";
|
if (secondsFromEnd <= 30) return "always";
|
||||||
if (percentage >= 0.94) return "hover";
|
if (percentage >= 0.93) return "hover";
|
||||||
return "none";
|
return "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue