-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swiper in iframe bug #2411
Comments
This is how iFrame works, there is no good way to detect that mouse went out of iframe |
Hey Vladimir.
Is there any particular reason it is attached to the document? |
Yes, in case you attach it not to document you will bad behavior when it runs not in iframe |
Ok thanks for the fast answer.
So when the swiper target is in an iframe, it uses the document of the iframe instead of the root document. It works in my test in both cases (inside and outside iframe). |
This is a:
https://dmaus.github.io/Swiper-iframe/
(https://github.com/dmaus/Swiper-iframe)
What you did
Init swiper in an iframe from the parent window
Expected Behavior
Drag should work
Actual Behavior
Dragging does not work. It works when I drag on a slide and move the mouse outside of the iframe.
*Edit: Example works now
The text was updated successfully, but these errors were encountered: