-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
ionic2 - multiple ion-slides - swiper-pagination issue #5837
Comments
Thank you for the detailed issue! This is a known issue that we plan on resolving as part of this issue: #5508 😄 |
Thanks, didn't see the prior issue. |
Is it possible that this isn't solved yet? I still have this issue |
It was closed because there is another open issue about it. #5508 |
It was fixed as part of #5508 in https://github.com/driftyco/ionic/blob/2.0/CHANGELOG.md#200-beta5-2016-04-20 |
I'm having the exact same problem, I'm using Ionic 2.0.0-rc.0 |
Good workaround: just add and use your custom pagination and reference it in the swiper options. |
@olivermuc do you have an example of this? Still getting the issue here :/ |
Sad to see this still not working in 3.0.1 ... :( |
I've found that this problem persists on V2.3.0. |
@akaztp - I'd love to see your fixes! It does make sense that they seem to share global variables rather than isolated within instances of Slides. Let me know if you need the PR tested out on a different project. (I have about 8 carousels on the same view and then sub-carousels on modals which all get affected) |
@akaztp , thank you for finding fix for this issue. Could you please share your fix? |
@olivermuc can you explain in more datails how to do this ? |
Submitted PR #11791 |
still having issue with slide in latest version. any solution for this? |
@manoj-negi try out the changes in the PR provided by @akaztp, it fixed a lot of the problems for me. |
@akaztp hi, thank you for the solution. It worked out very well and solved the multiple slides issue. However there is one more issue i'm facing. how to make these multiple sliders responsive for different devices by changing slideperview and spaceBetween depending on the screen size. And also is it possible to give both the sliders on the same page different styling. one can be normal and other one can be centered. also both can have different values for slideperview and spacebetween. Thanks in advance. |
@nidhi1612 I'm not using them with the cases you mention so I would have to explore and ask you more questions, but I think this thread is not the place for that. You should try stackoverflow. |
Please try the following nightly build and let me know if it addresses your issue:
|
Thanks @kensodemann - I will give this a go! |
Hey @kensodemann - tried it out on two of my projects and it works great. I have found only one issue with it so far, with mouse events if you click and drag and release and then move the mouse cursor over another slides it triggers another slides instance. See the GIF below which can better explain - I am using a an ion-slides with two ion-slides inside it, which are in a grid side by side. The parent ion-slides gets affected too, but I have only demonstrated the two child slides affecting each other. This only happens with mouse events and not touch events (possibly because it doesn't fire hover/mouse events in touch environments!) |
@kensodemann In addition to @CookieCookson 's comments I'm also having issue where it seems to reset to the 'last' slide when starting the drag (on all sliders). |
@kensodemann i am also facing both the issues mentioned by @CookieCookson and @bjconlan . |
ion-slide.swiper-slide.swiper-slide-active { This worked for me |
@kensodemann Thank you very much for that command! I was having pretty much the exact same issue that the poster had and then I ran your install command and now both ion-slides operate independently. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Short description of the problem:
When you have multiple ion-slides on one page, e.g (i have two horizontal sliders to show profile pictures) the swiper-pagination doesn't know which slides to follow. Swiping slide A moves all paginations on slide B, whereas swiping slide B doesn't move the pagination at all.
What behavior are you expecting?
Each slide list should move only their own pagination.
Sorry tried to make codepen but couldn't find anything for ionic2. Code will be messy below
Other information:
GIF of issue
https://drive.google.com/open?id=0BzsOvFFIePyeOXdtV1ZMM1FETjQ
Which Ionic Version? 1.x or 2.x
2 current beta
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
ios-deploy version: Not installed
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.4.0
Xcode version: Xcode 7.2 Build version 7C68
The text was updated successfully, but these errors were encountered: