Skip to content

Commit

Permalink
Fixes the onPause event propogation (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashatgit authored and cookpete committed Feb 22, 2018
1 parent 23c9faf commit b604ded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ export default class Player extends Component {
}
this.onDurationCheck()
}
onPause = () => {
onPause = (e) => {
this.isPlaying = false
if (!this.isLoading) {
this.props.onPause()
this.props.onPause(e)
}
}
onEnded = () => {
Expand Down

0 comments on commit b604ded

Please sign in to comment.