Option to pause the video when scrolling
mmttee opened this issue · comments
VedaM commented
Issue description:
I added play/pause buttons to control the video (as it's required by WCAG AA standards) but the problem occurs when the user had paused the video and try to scroll the page then the video starts playing automatically which I'm trying to prevent.
Anyone had this issue before, if so how did you solve it?
Version used:
(Did you try using the develop branch from GitHub? There's a chance your issue has already been addressed there)
1.12.2
Code to reproduce the issue (HTML blocks + JavaScript initialization)
Nikita commented
When enabled option videoPlayOnlyVisible
, video will be paused and played automatically
jarallax/src/jarallax-video.esm.js
Lines 181 to 195 in 1e21900