Topic: mdb-carousel scrolling down
Adrian Dragomir free asked 5 years ago
I have a 100vh height mdb-carousel slider in my header on mobile (Android/Chrome) but can't swipe to scroll down the page. Side swipe to trigger slide transitions works fine but no page scrolling is happening on upward or downward swipe. Using version mdb-angular-free-8.6.0.
Any help appreciated! Thanks!
Bartosz Termena staff answered 5 years ago
Hi!
Try to add to your styles this line:
.carousel .carousel-inner {
height: 100vh;
overflow-y: scroll; <------
}
Hope it helps!
Best Regards, Bartosz.
Adrian Dragomir free commented 5 years ago
Thank you very much, it is working. But on the desktop browser it appeared a second scroll bar so I modified the setting to overflow-y: auto; and now it is working on both, desktop and mobile. Thank you again. Adrian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.6.0
- Device: any
- Browser: Chrome
- OS: Android
- Provided sample code: No
- Provided link: No
Bartosz Termena staff commented 5 years ago
Hi!
Could you show me your code?
Best Regards, Bartosz.
Adrian Dragomir free commented 5 years ago
Yes, of course.
app.component.html A carousel with controls and indicators from https://mdbootstrap.com/docs/angular/advanced/carousel/
Plus some text:
Adrian Dragomir free commented 5 years ago
app.component.scss .carousel { height: 100vh;}
.carousel .carousel-inner { height: 100vh;}
.carousel .carousel-inner .carousel-item,.carousel .carousel-inner .active { height: 100vh;
}