Skip to content

Commit a88e82c

Browse files
committed
Fix some delayed update bugs in player
1 parent fdd06e8 commit a88e82c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

renderer/elements/player/progress.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ class Progress extends Component {
110110

111111
update (state, emit) {
112112
this.emit = emit
113+
if (this.disabled !== truthy(state.player.currentIndex)) return true
113114
if (this.key !== get(state, 'player.currentTrack.key')) return true
114115
if (this.position !== state.player.currentTime) return true
115-
if (this.disabled !== truthy(state.player.currentIndex)) return true
116+
if (this.duration !== get(state, 'player.currentTrack.duration')) return true
116117
return false
117118
}
118119
}

0 commit comments

Comments
 (0)