Skip to content

Commit

Permalink
fix(FEC-9413): when seeking the end of the 2nd entry the playlist ski…
Browse files Browse the repository at this point in the history
…p the 3rd entry (last) and jumps to 1st (#432)

Do not update the component by `props.currentTime` if it already updated by `props.isPlaybackEnded`
  • Loading branch information
yairans committed Oct 7, 2019
1 parent fcac4f9 commit 138401a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/playlist-countdown/playlist-countdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class PlaylistCountdown extends Component {
* @returns {boolean} shouldComponentUpdate
*/
shouldComponentUpdate(nextProps: Object): boolean {
return !nextProps.isSeeking;
return !(nextProps.isSeeking || this.props.isPlaybackEnded);
}

/**
Expand Down

0 comments on commit 138401a

Please sign in to comment.