Same for me. I tried to return the next() function when the carousel reached the end. It works, not more weird wrapping, BUT still have a problem, the divs keeping the images keep getting messed up.
If you use greasemonkey or google inspector you should try looking at what happens when you use the next function. it acts realy weird.
Still trying to fix this thing because no other plugins do the same for me.
Edit: Okay I have a temp fix for now, it is not perfect, but does fix the weird image changing order thing for me.
I changed the function next() and prev() to normal if statements, then added something:
next():
next: function () {
//this.tail !== null && !this.inTail ? this.scrollTail(false) : this.scroll((this.options.wrap == "both" || this.options.wrap == "last") && this.options.size !== null && this.last == this.options.size ? 1 : this.first + this.options.scroll)
if (this.tail !== null && !this.inTail) {
this.scrollTail(false)
} else {
// I view three images at once, so if this.first + 2 == the size it means the
// last 3 pictures are displayed. Change the 2 to your amount of pictures that
// is showed MINUS 1. So if in your sc you use visible=5, use 4.
if (this.first + 2 == this.options.size) {
return
}
if ((this.options.wrap == "both" || this.options.wrap == "last") && this.options.size !== null && this.last == this.options.size) {
this.scroll(1)
} else {
this.scroll(this.first + this.options.scroll)
}
}
},
prev():
prev: function () {
//this.tail !== null && this.inTail ? this.scrollTail(true) : this.scroll((this.options.wrap == "both" || this.options.wrap == "first") && this.options.size !== null && this.first == 1 ? this.options.size : this.first - this.options.scroll)
if (this.tail !== null && this.inTail) {
this.scrollTail(true)
} else {
if (this.first == 1) {
return
}
if ((this.options.wrap == "both" || this.options.wrap == "first") && this.options.size !== null && this.first == 1) {
this.scroll(this.options.size)
} else {
this.scroll(this.first - this.options.scroll)
}
}
},
This does not fix it 100%, but maybe someone has some use of it.