akiran / akiran/react-slick

Slide as link element is always clicked

Aperta
#1,956 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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'.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.