onSwipe is not working
Aperta
- Lingua principale
- JavaScript
- Stelle
- 11.9k
- Fork
- 2.1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I need to determine if the swiper changes via swipe and when I try to use onSwipe, it does not fire.
```
const settings = {
dots: false,
arrows: false,
autoplay: false,
slidesToShow: 1,
slidesToScroll: 1,
swipe: true
swipeToSlide: true
onSwipe: (direction) => {
console.log("Swipe direction:", direction);
if (direction === "left") {
console.log("Swiped left!");
} else if (direction === "right") {
console.log("Swiped right!");
}
},
}
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.