I
I
IIIu6ko2020-09-28 09:56:39
JavaScript
IIIu6ko, 2020-09-28 09:56:39

How to scroll through the slider when clicking on the first/last visible slide?

There is a slider with tambas


It is necessary when clicking on the first/last visible tab to scroll one slide in the desired direction.
For example, when you click on the 5th thumbnail, show the 6th one.
I did not find a suitable setting in the API. Maybe I didn't search well.

Moreover, if the slider is scrolled and click on the 2,3,4 slide, then it will become the last __
Strange behavior, if anyone knows how to disable this crap, then tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
h4mpy, 2020-09-28
@IIIu6ko

see autoScrollOffset

thumbs: {
    swiper: thimbs,
    autoScrollOffset: 1
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question