[Custom slides] Iframe / youtube - how to handle sliding #46
-
Having very basic slide akin to one in this discussion: <iframe
src={src}
title={title}
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
></iframe>
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Youtube video is not pausing when changing the slide. How to control when change the slide. |
Beta Was this translation helpful? Give feedback.
I haven't experimented a lot with iframe slides in a lightbox, but based on my experience, you should not expect navigation features to work exactly the same way they work for regular images. Even keyboard navigation stops working when an iframe captures focus. So that leaves the navigation buttons pretty much the only reliable navigation option within a slide using an iframe. To improve the UX, you can probably leave some extra space around an iframe so that users can either swipe or click-and-drag to go to the next slide as an alternative to clicking the Prev/Next buttons.
Yes, it looks like a bug. I'll take a look sometime later this week.