Vertical slider with releaseOnEdges #4287
Unanswered
Mainspring92
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to have hero vertical slider with further section of page without Swiper. I found "releaseOnEdges" to scroll down the further sections but i have som BUGS. When my scroll is too long the next slider position is wrong ( sometimes scroll goes into the end of next slide ). So the position of prev/next slide based on scroll speed on mouse. Below is my JS for this slider. Did someone had the same issue ?
const swiper = new Swiper(".js-scroll-snap", {
direction: "vertical",
mousewheelControl: true,
slidesPerView: 1,
effect: "slide",
parallax: false,
longSwipes: false,
speed: 600,
mousewheel: {
forceToAxis: false,
eventsTarget: ".swiper-wrapper",
releaseOnEdges: true,
},
});
Beta Was this translation helpful? Give feedback.
All reactions