tiny-slider
tiny-slider copied to clipboard
Feature Request: drag threshold
Issue description:
First, thank you for great library. I think it would be better if this library has drag threshold. Currently, slides change even with one pixel movement. It's very uncomfortable when using in mobile(Some touches are regarded as drags in mobile, so some slide changes with one touch)
Demo link/slider setting:
https://flickity.metafizzy.co/options.html#dragthreshold
We have a bug caused by too sensitive Slider, is there any chance this feature request will be done any time soon? Otherwise we would have to completely replace the slider, which is a lot of work.
I've found where to place the option, this may possibly be half of work already: tiny-slider.js:2605 (v2.9.2)
if(Math.abs(dist) < 50) {
indexMoved = 0;
}
between those two lines:
indexMoved = dist > 0 ? Math.floor(indexMoved) : Math.ceil(indexMoved);
index += indexMoved;
50
has to be replaced with option value, default could be 15
or so.
+1 for this option!
+1
This would be a great feature and one that I tried to implement but I keep getting lots of errors when trying to make changes and minifying the js. Has anyone been able to get this thing working?