Skip to content

Commit

Permalink
fix: play button delay in mobile player
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyCA committed Jan 11, 2021
1 parent a7b9cec commit 5e8eccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/PlayerMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const PlayerMobile = ({
locale,
toggleMode,
renderAudioTitle,
actionButtonIcon,
}) => (
<div className={cls(prefix, { 'default-bg': !glassBg, 'glass-bg': glassBg })}>
<PlayModeTip
Expand Down Expand Up @@ -90,7 +91,7 @@ const PlayerMobile = ({
title={playing ? locale.clickToPauseText : locale.clickToPlayText}
onClick={onPlay}
>
{playing ? icon.pause : icon.play}
{actionButtonIcon}
</span>
)}
<span
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ export default class ReactJkMusicPlayer extends PureComponent {
locale={locale}
toggleMode={toggleMode}
renderAudioTitle={this.renderAudioTitle}
actionButtonIcon={actionButtonIcon}
/>
)}

Expand Down

0 comments on commit 5e8eccd

Please sign in to comment.