NickPiscitelli/Glider.js

scrollLock on true option not working

Closed this issue · 1 comments

Hi there, I've made a simple slider using your package. I wanted to use scrolllock: true so that the user automatically jumps to a tab that is the closest one. sadly it's not working. This is what I've tried:

var glider = new Glider(document.querySelector('.test-slider'), {
        slidesToShow: 6,
        slidesToScroll: 6,
        scrollLock: false,
        draggable: true,
    });

Besides that. I want to make a dynamic slider (so that it depends per user how many slides there are). Is there a way to make that dynamic too, instead of defining the right amount of slide within the options?

Thanks in advance!

My bad I had slidesToShow on 6, it works as it should!