Still a tiny glitch on some tracks when swiping

This commit is contained in:
James Barnsley
2019-02-18 08:47:15 +13:00
parent ecbd10b8db
commit 40cc847071
6 changed files with 8 additions and 8 deletions

View File

@ -69976,8 +69976,8 @@ var PlaybackControls = function (_React$Component) {
// A bit niggly to have to deeply check this...
if (this.props.current_track && nextProps.current_track) {
if (this.props.current_track.images && !nextProps.current_track.images || !this.props.current_track.images && nextProps.current_track.images || this.props.current_track.images.length != nextProps.current_track.images.length) {
//this.setState({current_track: nextProps.current_track});
if (this.props.current_track.images && !nextProps.current_track.images || !this.props.current_track.images && nextProps.current_track.images) {
this.setState({ current_track: nextProps.current_track });
}
}
}
@ -70052,7 +70052,7 @@ var PlaybackControls = function (_React$Component) {
transition_track: null,
transition_direction: null
});
}, 300);
}, 250);
}
}, {
key: 'renderPlayButton',