-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Slick inside iFrame stuck on iOS #2834
Comments
Usually when I see this it's something to do with a bunch of large images, but I doubt it's something to do with the Slick library. If you have a test case I can reopen, but for now I'm closing. |
I had the same bug in a client project, but I tried to isolate the issue. Demo-Site: I tested with an iPad:
and with an iPod:
If you need anything else, just let me know. I hope these information help, to trace this bug down. |
Why is this closed? I am running into a similar error when the iFrame has a width of 100%. |
This has to be reopened again. I ran into this bug as well and i need to find a fix for that... Slickslider developers should be here and try to help. BTW: It's impossible to make a jsfiddle for that because you cannot reproduce this bug in a fiddle. It's only happening when you load a slick slider within an iframe with a mobile device. |
So as a note with this I found that I had to update the CSS a bit adding the following goofiness
I also found that infinite had to be set to false to work correctly in iOS within an iFrame. |
Strange! This issue is still exist. If are you use the WordPress then you can reproduce the issue. I have used Elementor widget to create a slider. Elementor have the slick slider version
After I use the @runxc1 provided CSS it works as expected.
|
Where do you put this line : div.slick-slider { width: 1px; min-width: 100%; *width: 100%; } ? |
@rcontractor are you trying to use the infinite option? As for where to put it I have it outside the css file on the page so essentially at the bottom of the file. |
Great solution @runxc1. I had the exact same conditions - namely Slick in an iFrame and only crashing in an iOS browser - same behavior in Safari, Chrome and Firefox for iOS. For this project it's unavoidable as an iFrame is the only option for this particular client. |
Thanks for the solution. |
yes!! this works |
When using Slick inside an iframe, everything works fine except on iOS. Here, the browser starts to be very very slow and the Slick exceeds the iframe's width.
The text was updated successfully, but these errors were encountered: