akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.73k stars 2.1k forks source link

Slide as link element is always clicked #1956

Open artuswo443 opened 3 years ago

artuswo443 commented 3 years ago

I have slider containing photos links. Whenever I drag any of them it redirects me. I tried to make workaround with 'pointer-events: none;' on every slide. There is event 'swipeEvent' which is fired when I start dragging. But there is no event indicating end of dragging. When slide slides to another place, 'onSwipe' is fired, but it's not every case I need it for.

It can be done inside library pretty easily. Rule is the same as I wrote above, but 'pointer-events: none;' should be applied to div element with class 'slick-track'.

9you commented 3 years ago

Duplicate with #1952