• Resolved cakecommunication

    (@cakecommunication)


    If I run the slider without using the left or right arrows to go to the next slider, everything is fine but when I click on one. The wait between the automatic slide change doesn’t seem to reset.

    So exemple I’ve set it to wait 6 seconds before going to the next slide. When I click on the next button, it goes to the next slide and then like 2 seconds later, it go to the next slide, 4 seconds later next one, 1 second later next one and so on…

    I doesn’t respect the default wait time gave in the admin setting at all.

    What could be causing this bug ?

    https://www.ads-software.com/extend/plugins/promotion-slider/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter cakecommunication

    (@cakecommunication)

    The clearInterval is set before the slider is changing. Fixed it in the promo_slider.js

    Line 201

    jQuery('.move_forward', currentSlider).click(function(){
    	  progress('forward', currentSlider, panelCount);
    	  if(autoAdvance) sliderInterval = setInterval(function(){progress('forward', currentSlider, panelCount);}, (timeDelay * 1000));
    	  clearInterval(sliderInterval);
    	});
    
    	jQuery('.move_backward', currentSlider).click(function(){
    	  progress('backward', currentSlider, panelCount);
    	  if(autoAdvance) sliderInterval = setInterval(function(){progress('forward', currentSlider, panelCount);}, (timeDelay * 1000));
    	  clearInterval(sliderInterval);
    	});

    Move it at the end

    This is the correct answer. After fighting with this for a while, I finally found this post. Recommended for next version / bugfix.

    Paul

    I have attempted this fix every which way I could but with no success, any other ideas on how we can fix this?

    This was happening to my site as well yesterday. I just applied this fix and it worked for me.

    What version of the slider is everyone using? The code I have in the promo_slider.js isn’t even the same as what is shown here, there is no line 201.

    3.3.4 here.

    Thread Starter cakecommunication

    (@cakecommunication)

    Note that the original post is 11 months old. The file has been updated since but seems to have not applied the fix. The new line in promoslider.js is now starting at 121

    This change has not fixed anything, I just attempted the change on a completely different site in a custom theme I just finished designing and still the same problem. *sigh* I think it’s time I find a new slider plugin, so sad, I really liked this one.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Slider wait is messing up when using navigation links’ is closed to new replies.