cubiq / SwipeView

Virtually infinite loop-able horizontal carousel
MIT License
698 stars 167 forks source link

Swipe on Video element does not work #10

Open drale2k opened 12 years ago

drale2k commented 12 years ago

Hey, any chance to get this working when swiping over an video element? I guess the

rosemarydotworld commented 12 years ago

I've also experienced this. In iOS at least, video elements capture all touch events and ignore their own z-index when touch events happen on an element above them. My solution is to keep the video element offscreen somewhere (or display:none) and use an image decoy. With some javascript you can pretty reasonably simulate the click-to-play video behavior.