Swipe icon indicating copy to clipboard operation
Swipe copied to clipboard

How to disable arrow for first and last slide

Open Alichughtai opened this issue 11 years ago • 1 comments

How to disable arrow for first and last slide

Alichughtai avatar Sep 09 '14 08:09 Alichughtai

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);
}

gideonheilbron avatar Sep 10 '14 08:09 gideonheilbron