Witam, mam taki problem, użyłem responsiveSlides z strony : http://responsiveslides.com/ No i niby wszystko działa ale mam jeden problem, są strzałki, klikam w prawo, pokazuje się kolejne zdjęcie, klikam w lewo, pokazuje się poprzednie, klikam w prawo i jeszcze raz w prawo i jest dobrze, ale jak z tego trzeciego zdjęcia chce cofnąć to przechodzi do kolejnego... Od 3ciego zdjęcia nie da się cofnąć.
Link do responsiveslides.js : https://github.com/viljamis/ResponsiveSlides.js/blob/master/responsiveslides.js
Mam wrażenie że błąd jest w tym momencie ale za cholerę nie mogę sobie z tym poradzić, proszę o pomoc.
// Adds active class during slide animation
// $(this)
// .addClass(namespace + "_active")
// .delay(fadeTime)
// .queue(function (next) {
// $(this).removeClass(namespace + "_active");
// next();
// });
// Determine where to slide
var idx = $slide.index($visibleClass),
prevIdx = idx - 1,
nextIdx = idx + 1 < length ? index + 1 : 0;
// Go to slide
slideTo($(this)[0] === $prev[idx] ? prevIdx : nextIdx);
if (settings.pager || settings.manualControls) {
selectTab($(this)[0] === $prev[idx] ? prevIdx : nextIdx);
}
if (!settings.pauseControls) {
restartCycle();
}
});