Closed SaifOwleN closed 5 months ago
@SeifOwleN thanks for your bug report. Are the video elements iframes?
no, its just a normal video tag like this
<video width="x" height="y" controls>
<source src="movie.mp4" type="video/mp4">
Placeholder
</video>
@SeifOwleN thanks. I wasn’t able to see the CodeSandbox for mysterious reasons.
Isn’t this how the HTML5 video tag is supposed to work? It will swallow any pointer events if the controls
attribute is present. If you want it to be swipeable you need to remove the controls
attribute and add custom controls.
Best, David
@SeifOwleN have you read my comment?
sorry, haven't noticed. yeah i did search more and implemented a custom video player and it actually worked thanks 🥰
@SeifOwleN thank you for confirming 👍!
Bug is related to
Embla Carousel version
v8.0.0-rc18
Describe the bug
cannot swipe video elements used as carousel items
CodeSandbox
https://codesandbox.io/p/sandbox/embla-carousel-default-react-forked-7zsrhv
Steps to reproduce
1- add a carousel slide item 2- add video element then try to swipe
Expected behavior
being able to swipe like normal carousel slide