I created editing on simple.carousel.js to stop the carousel when it hangs, but I had a problem reloading when the mouse. The code I added to simple.carousel.js is:
// hover stop if(config.auto!=true) $(this).mouseenter(function() { config.auto=false; }).mouseleave( function() { config.auto=true; });
Here you can see the full code / example with my addition above: http://jsfiddle.net/6r6sC/2/
Is there something wrong with my mouseleave function?
Not sure if this will help, but I also tried the following, but this also does not work:
// hover stop if(config.auto!=true) $(this).mouseenter(function() { config.auto=false; }).mouseleave( function() { setTimeout(function() { slide('next'); }, config.auto); });
Any help would be greatly appreciated, as it puzzled me.
source share