Skip to content

Commit

Permalink
fix: fade out
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi committed Feb 2, 2024
1 parent cb7b4b4 commit e592a81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/player/controls/usePlayerControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default () => {
useTrackPlayerEvents([Event.PlaybackProgressUpdated], event => {
saveLastPlayDuration(event.position);
if (
fadeIntervalSec > 0 &&
event.duration > 0 &&
event.position >
Math.min(bRepeatDuration, event.duration) - fadeIntervalSec
Expand Down

0 comments on commit e592a81

Please sign in to comment.