active_slide_class: 'active', // Class name given to the active slide
orbit_transition_class: 'orbit-transitioning',
bullets: true, // Does the slider have bullets visible?
+ circular: true, // Does the slider should go to the first slide after showing the last?
timer: true, // Does the slider have a timer visible?
variable_height: false, // Does the slider have variable height content?
swipe: true,
var dir = 'next';
locked = true;
if (next_idx < idx) {dir = 'prev';}
- if (next_idx >= slides.length) {next_idx = 0;}
- else if (next_idx < 0) {next_idx = slides.length - 1;}
+ if (next_idx >= slides.length) {
+ if (!settings.circular) return false;
+ next_idx = 0;
+ } else if (next_idx < 0) {
+ if (!settings.circular) return false;
+ next_idx = slides.length - 1;
+ }
var current = $(slides.get(idx));
var next = $(slides.get(next_idx));
active_slide_class: 'active',
orbit_transition_class: 'orbit-transitioning',
bullets: true,
+ circular: true,
timer: true,
variable_height: false,
swipe: true,