mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Removed play icon on video player after first play
refs https://github.com/TryGhost/Team/issues/1229
This commit is contained in:
parent
04baa88c23
commit
e43fe45d24
1 changed files with 2 additions and 1 deletions
|
@ -120,6 +120,8 @@
|
|||
const isPlaying = !!(videoEl.currentTime > 0 && !videoEl.paused && !videoEl.ended && videoEl.readyState > 2);
|
||||
if (isPlaying) {
|
||||
handleOnPause();
|
||||
} else {
|
||||
handleOnPlay();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -141,7 +143,6 @@
|
|||
}
|
||||
|
||||
const handleOnPause = () => {
|
||||
largePlayIcon.classList.remove("kg-video-hide-animated");
|
||||
videoOverlay.classList.remove("kg-video-hide-animated");
|
||||
pauseIconContainer.classList.add("kg-video-hide");
|
||||
playIconContainer.classList.remove("kg-video-hide");
|
||||
|
|
Loading…
Add table
Reference in a new issue