core/js/lib/jquery/plugins/fullpage/fullpage.js
/**
        * Slides a slider to the given direction.
        * Optional `section` param.
        */
Slides a slider to the given direction.
Optional `section` param.
Slides a slider to the given direction . Optional ` section ` param .
function moveSlide(direction, section) {
            var activeSection = typeof section === 'undefined' ? $(SECTION_ACTIVE_SEL) : section;
            var slides = activeSection.find(SLIDES_WRAPPER_SEL);
            var numSlides = slides.find(SLIDE_SEL).length;
            if (!slides.length || slideMoving || numSlides < 2) {
                return;
            }
            var currentSlide = slides.find(SLIDE_ACTIVE_SEL);
            var destiny = null;
            if (direction === 'left') {
                destiny = currentSlide.prev(SLIDE_SEL);
            } else {
                destiny = currentSlide.next(SLIDE_SEL);
            }
            if (!destiny.length) {
                if (!options.loopHorizontal) return;
                if (direction === 'left') {
                    destiny = currentSlide.siblings(':last');
                } else {
                    destiny = currentSlide.siblings(':first');
                }
            }
            slideMoving = true;
            landscapeScroll(slides, destiny, direction);
        }
function moveSlide ( direction , section ) { var activeSection = typeof section === 'undefined' ? $ ( SECTION_ACTIVE_SEL ) : section ; var slides = activeSection . find ( SLIDES_WRAPPER_SEL ) ; var numSlides = slides . find ( SLIDE_SEL ) . length ; if ( ! slides . length || slideMoving || numSlides < 2 ) { return ; } var currentSlide = slides . find ( SLIDE_ACTIVE_SEL ) ; var destiny = null ; if ( direction === 'left' ) { destiny = currentSlide . prev ( SLIDE_SEL ) ; } else { destiny = currentSlide . next ( SLIDE_SEL ) ; } if ( ! destiny . length ) { if ( ! options . loopHorizontal ) return ; if ( direction === 'left' ) { destiny = currentSlide . siblings ( ':last' ) ; } else { destiny = currentSlide . siblings ( ':first' ) ; } } slideMoving = true ; landscapeScroll ( slides , destiny , direction ) ; }
Slides a slider to the given direction.
Slides a slider to the given direction .
// more than one slide needed and nothing should be sliding //isn't there a next slide in the secuence? //respect loopHorizontal settin