const SlideSettings = {
dots: false,
arrows: false,
infinite: false,
speed: 500,
slidesToShow: 1,
slidesToScroll: 1,
draggable: true,
// swipe: false,
currentSlide: activeLocation,
afterChange: (newIndex: number) => {
setActiveLocation(newIndex);
},
};
const SwipeSettings = {
dots: false,
arrows: false,
infinite: false,
speed: 500,
slidesToShow: 1.5,
slidesToScroll: 1,
draggable: true,
swipe:true
};
When working in NextJS, I found that I need to comment out the swipe option in order to use it. However, doing so triggers this error message:
Ignored attempt to cancel a touchend event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
Despite wanting to set swipe to true, I am unable to make it false. Is there a workaround for this issue?