문제

I have tried the recommended -webkit-transform-style: preserve-3d on my video elements to prevent videos from starting when the user clicks on an overlay that is above the video element, but the videos still play :s

Seems to be an issue with mobile safari as there is NO problem in Chrome.

Can anyone provide any other recommendations?

Thanks!!!

도움이 되었습니까?

해결책

Are you capturing the event on the overlay? If so, call event.stopPropagation and that should block it from bubbling up to the video element.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top