Skip to content
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

slider explodes on iOS and when viewport is resized #39

Closed
made-by-chris opened this issue Nov 3, 2016 · 8 comments
Closed

slider explodes on iOS and when viewport is resized #39

made-by-chris opened this issue Nov 3, 2016 · 8 comments

Comments

@made-by-chris
Copy link

made-by-chris commented Nov 3, 2016

Hi, I'm having a number of issues with this slider - when i change the width or even height of the viewport, all the images can disappear.

When I load the slider on a page in iOS, the slider takes up the full height of all of the images combined, and the images are not visible. It appears to have exploded.

Is anyone else facing these brittle behaviour issues?

Can you suggest any other javascript carousel libraries for compatibility with IE11 and iOS?

@lyfeyaj
Copy link
Owner

lyfeyaj commented Nov 3, 2016

Please make sure that you are using the latest version of swipe: 2.0.12

If not, you can install it via npm install swipejs@latest

@made-by-chris
Copy link
Author

I am using Swipe 2.0.12, do you have any other suggestions?
It would be good to know if this is/was an issue other people have seen, or just me.

@made-by-chris
Copy link
Author

(FWIW i just extracted the min build from the latest release, that should be fine right?)

@lyfeyaj
Copy link
Owner

lyfeyaj commented Nov 3, 2016

It seems something related with your stylesheets, the following css must be included in somewhere in your project to make sure swipe work as expected

.swipe {
  overflow: hidden;
  visibility: hidden;
  position: relative;
}
.swipe-wrap {
  overflow: hidden;
  position: relative;
}
.swipe-wrap > div {
  float:left;
  width:100%;
  position: relative;
  overflow: hidden;
}

@made-by-chris
Copy link
Author

I included that also. I will check my markup and css to see if something is missing though

@lyfeyaj
Copy link
Owner

lyfeyaj commented Nov 3, 2016

If this problem only happened when you resize your viewport, you can try to call mySwipe.setup() to let swipe re-initialize...

@made-by-chris
Copy link
Author

hi it turns out the resize issue was due to a missing css style, i must have accidentally removed it
However the slider is still totally missing on iOS iphone 6 safari. Could be result of something else though I'll see.

@lyfeyaj
Copy link
Owner

lyfeyaj commented Feb 9, 2017

Can't reproduce

@lyfeyaj lyfeyaj closed this as completed Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants