React-slick: Slides are still draggable on mobile - how to prevent?

Created on 5 May 2017  路  2Comments  路  Source: akiran/react-slick

I have a slick slider that shows only a single slide on screen at once. I would like to disable dragging so that the only way the slide being shown changes either on a timer or when a user clicks a control (e.g. a dot). I have been able to disable dragging in the browser, however I find that I can easily and accidentally drag a slide half off the page on my iPhone, rendering it unreadable.

How do I disable swipeability / draggability on the iPhone as well as in the browser?

I have set up the following jsfiddle to demonstrate the issue and with the relevant code (though jsfiddle isn't very good on mobile...)

https://jsfiddle.net/wisenheimer/j30crdok/

Setting the following settings doesn't seem to have any effect on the iPhone:
draggable: false,
swipeToSlide: false,
touchMove: false,

Most helpful comment

also set the "swipe"-property to false.

All 2 comments

also set the "swipe"-property to false.

Setting swipe: false (and not draggable, swipeToSlide, touchMove) has stopped it being draggable on the iPhone.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eternalsky picture eternalsky  路  3Comments

amishPro picture amishPro  路  3Comments

slashwhatever picture slashwhatever  路  3Comments

jfamousket picture jfamousket  路  3Comments

walker-jiang picture walker-jiang  路  3Comments