CSS-Tricks / AnythingSlider

A jQuery Slider plugin for anything.
http://css-tricks.github.io/AnythingSlider/
GNU Lesser General Public License v3.0
1.15k stars 380 forks source link

How to stop at last slide? #474

Closed liorocks closed 11 years ago

liorocks commented 11 years ago

Hi,

I have a slider, which has following parameters

'showMultiple':15,
 'changeBy':5,
'buildArrows':false,
'buildNavigation':false,
'buildStartStop':false,
'infiniteSlides':false,
'stopAtEnd':true

and also custom triggers, to slide them forward an back, using this functions

channelsSlider.data('AnythingSlider').goForward();
channelsSlider.data('AnythingSlider').goBack();

When I go to last slide, and click to "next" button, it starts sliding from back. How can I prevent from doing that?

liorocks commented 11 years ago

I fixed it by changing 'changeBy' option to 15