Codeinwp / Nivo-Slider-jQuery

Nivo Slider - The Most Awesome jQuery Image Slider
http://docs.themeisle.com/article/485-getting-started-with-the-nivo-slider-jquery-plugin
MIT License
1.25k stars 605 forks source link

Navigation is not working because of pauseTime #369

Open mustafa-qamaruddin opened 10 years ago

mustafa-qamaruddin commented 10 years ago

Code to Generate the issue : $('.nivoSlider').nivoSlider({ animSpeed : 1500, effect: '', pauseTime: 3500, directionNav: true, // Next & Prev navigation controlNav: true // 1,2,3... navigation });

The Tracing led to :

// Event when Animation finishes slider.bind('nivo:animFinished', function(){ sliderImg.attr('src', vars.currentImage.attr('src')); vars.running = false; // Hide child links $(kids).each(function(){ if($(this).is('a')){ $(this).css('display','none'); } }); // Show current link if($(kids[vars.currentSlide]).is('a')){ $(kids[vars.currentSlide]).css('display','block'); } // Restart the timer if(timer === '' && !vars.paused && !settings.manualAdvance){ timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime); } // Trigger the afterChange callback settings.afterChange.call(this); });

// vars.running is always true which causes the navigation to halt //the following line is run only slightly vars.running = false;