Merge branch 'update-video' into 'main'

Update video on mobile

Closes #1779

See merge request soapbox-pub/soapbox!3207
This commit is contained in:
Alex Gleason 2024-11-01 15:08:29 +00:00
commit fbfac7b5a3
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ const Video: React.FC<IVideo> = ({
};
const handleTogglePlay = () => {
if (!isMobile) togglePlay();
if (!isMobile || paused || hovered) togglePlay();
};
const progress = (currentTime / duration) * 100;