auto scrolling working!

This commit is contained in:
Luke Berndt
2021-02-11 21:54:38 -05:00
parent 6f7b86f0cb
commit 25b953d58d
18 changed files with 86 additions and 193 deletions

View File

@@ -65,8 +65,8 @@ class MediaPlayer extends React.Component {
});
}
componentWillUpdate(nextProps) {
if (nextProps.call && (nextProps.call !== this.props.call)) {
componentDidUpdate(prevProps) {
if (this.props.call && (prevProps.call !== this.props.call)) {
this.setState({
sourceIndex: 0
});