Update video on mobile
This commit is contained in:
parent
5d94eb80fa
commit
9637528a54
|
@ -469,7 +469,7 @@ const Video: React.FC<IVideo> = ({
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleTogglePlay = () => {
|
const handleTogglePlay = () => {
|
||||||
if (!isMobile) togglePlay();
|
if (!isMobile || paused || hovered) togglePlay();
|
||||||
};
|
};
|
||||||
|
|
||||||
const progress = (currentTime / duration) * 100;
|
const progress = (currentTime / duration) * 100;
|
||||||
|
|
Loading…
Reference in New Issue