Skip to content

Commit

Permalink
fix: 修复loading状态下不能暂停的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zuoxiaofei authored and ambar committed Apr 20, 2022
1 parent 9c2a6e3 commit 14099bf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/griffith/src/components/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,7 @@ const InnerPlayer: React.FC<InnerPlayerProps> = ({

const handlePause = () => {
emitEvent(EVENTS.REQUEST_PAUSE)

if (!isLoading || hideMobileControls) {
isPlayingSwitch.off()
}
isPlayingSwitch.off()
}

const handleVideoPlay = () => {
Expand Down

0 comments on commit 14099bf

Please sign in to comment.