I
I
Islam Ibakaev2019-04-05 22:20:42
JavaScript
Islam Ibakaev, 2019-04-05 22:20:42

How to make it so that in a slick carousel, as far as twisted, it stops there?

Made a constructor
Used slick for carousels.
In slick, you can grab a certain slide (double click) and "drag" the carousel to the sides, but when you release it, the carousel will actually move not by the distance you "drag", but by the value of the slidesToScroll property (one by default) .
The customer wants as far as he "pulled" to stop there.
The possibilities of the carousel are extensive, so I assume that this behavior can be customized? Tell me, have you ever had to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav, 2019-04-05
@devellopah

Option:
swipeToSlide
type: boolean
default: false
Allow users to drag or swipe directly to a slide irrespective of slidesToScroll

V
Vazgen Aleksanyan, 2019-04-05
@VazgXa

As far as I know there is no such possibility in slick slider.
And that's the biggest flaw for me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question