Swipe
Swipe copied to clipboard
How to disable arrow for first and last slide
How to disable arrow for first and last slide
Just check if the current slide is the first one, if so hide the previous slide arrow. For the next arrow count the amount of slides and check if the current slide is the last one ;)
Add a callback function eg:
function swipeCallback(position, elem) {
console.log(position);
}