0

Is it possible to have iframe as an element for glidejs carousel? When I add iframe as one of the li elements I cannot scroll anymore.

Here is an example. https://codesandbox.io/s/immutable-currying-yvecd?file=/index.html

Adam Bielecki
  • 657
  • 2
  • 6
  • 20
  • Next and Prev work fine in your demo. Not clear what issue is – charlietfl Apr 03 '21 at 16:19
  • I want to be able to scroll to next slide when holding youtube video. – Adam Bielecki Apr 03 '21 at 16:20
  • OK. Problem there is that an iframe creates it's own window completely isolated from parent page window. Events occur in that window, not the parent page window and no way to bubble them to the parent window. In other words, only the youtube pge knows about them – charlietfl Apr 03 '21 at 16:22
  • Is it possible to link the iframe event to parent so glide js can pick it up? – Adam Bielecki Apr 03 '21 at 16:24
  • Not without covering the iframe with another transparent element in the parent page. But that would block access to controls in the iframe – charlietfl Apr 03 '21 at 16:25
  • Or.... shift the iframe down a little bit in the slide so there is a "slide handle" to drag – charlietfl Apr 03 '21 at 16:26

0 Answers0