0
Fork 0
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:
Rishabh 2021-12-14 22:25:30 +05:30
parent 04baa88c23
commit e43fe45d24

View file

@ -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");