Skip to content

Commit

Permalink
Merge pull request #307 from JeffreyCA/unmute-fix
Browse files Browse the repository at this point in the history
fix: restore volume to original after unmute
  • Loading branch information
lijinke666 committed Feb 16, 2021
2 parents e1ab613 + fc1193c commit a330cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ export default class ReactJkMusicPlayer extends PureComponent {

onResetVolume = () => {
const { currentAudioVolume } = this.state
this.setAudioVolume(currentAudioVolume || 0.1)
this.setAudioVolume(this.getVolumeBarValue(currentAudioVolume || 0.1))
}

setAudioVolume = (volumeBarValue) => {
Expand Down

0 comments on commit a330cc2

Please sign in to comment.