Open mustafa-qamaruddin opened 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;
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;