Mobile: slide content scrolling issue
See original GitHub issueHi, thanks for your great slider!
I’ve a quite big problem with Swiper on mobile browsers: I’ve built a website with nested swipers, slides have 100% width and height and as requirement parent slides should move vertically (as it does with eg. parentSwiper.swiper({direction:'vertical',effect:'slide'})
), some slides contain long texts that need a scrollbar when screens become smaller: using overflow-y: auto
works great on desktops but on mobiles/touch devices text scrolling doesn’t work (a vertical swipe triggers a slide movements while the text remains unscrollable, it should scroll text and then start moving the slider when reaching text ‘borders’).
Is there a way to have Swiper integrated scrollbar working for slide content? the demos show it working only for swiper-container as an aternative to pagination, it would be very useful for responsive websites/apps to have it working for slide content.
(with another project that used Swiper 2.x I got a semi-working solution for vertical swiper with vertical scrollbar for slides contents by tweaking swiper code, but it was buggy because it needs to rely on timers and double clicks/touches to allow both native overflow scrolling for contents and slides scrolling)
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (5 by maintainers)
Ok, here is a pretty nice working solution. Works well on iOS https://jsfiddle.net/8fgphstx/1/
Here is the JS:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.