-
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
Multiple ion-slides broken in same page on PC view #12008
Comments
Thanks for using Ionic! We will look into this. |
There is someone who as a temporary fix for that? I was hoping this bug to be fixed on the next update of Ionic but it was not the case, and my project is using some slides component on PC and I have to deliver it soon. thank you so much for your help |
Probably same issue but my ion-slides are on different tabs. if ((s.simulateTouch && !plt.is('ios') && !plt.is('android')) || (s.simulateTouch && !s._supportTouch && plt.is('ios')) || plt.getQueryParam('ionicPlatform')) {
// mousedown
plt.registerListener(touchEventsTarget, 'mousedown', function (ev) {
onTouchStart(s, plt, ev);
}, { zone: false }, unregs);
// mousemove
plt.registerListener(touchEventsTarget, 'mousemove', function (ev) {
onTouchMove(s, plt, ev);
}, { zone: false }, unregs);
// mouseup
plt.registerListener(touchEventsTarget, 'mouseup', function (ev) {
onTouchEnd(s, plt, ev);
}, { zone: false }, unregs);
} Don't know if this is a copy/paste typo or if there was some meaning to bind the document instead of the slides div. |
Please try the following nightly build and let me know if it addresses your issue:
|
@kensodemann Looks right to me! |
I had the same problem. It was an overflow issue. Sliders container overflow must be set to hidden. |
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. |
Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
There are ion-slides A and ion-slides B in same page on PC View(ex: Desktop Chrome).
Dragging A will also cause B to move.
Steps to reproduce:
Related code:
Probably, this is the cause.
https://github.com/ionic-team/ionic/blob/master/src/components/slides/swiper/swiper-events.ts#L76
The text was updated successfully, but these errors were encountered: