sachinchoolur / lightslider

JQuery lightSlider is a lightweight responsive Content slider with carousel thumbnails navigation
http://sachinchoolur.github.io/lightslider/
MIT License
2.04k stars 1.52k forks source link

Timing issue after navigating #171

Open yatishmadhav opened 8 years ago

yatishmadhav commented 8 years ago

Hi there,

Great script! Thanks for putting so much into it!

I'm having a slight issue with the timing (I couldn't find a related issue here). So the total pause is 7 seconds between slides. If i click on a thumbnail (OR click next/prev OR use arrows) while it is shown for 5 seconds, the next (selected) slide shows for the remaining 2 seconds and not from 7 again. Here is the code:

What am i missing to do this?

var slider = $('#image-gallery').lightSlider(
{
            gallery:true,
            item:1,
            thumbItem:10,
            slideMargin: 0,
            speed:500,
            auto:true,
            pause:7000,
            loop:true,
            controls:true,
            keyPress:true,
            prevHtml:'prev',
            nextHtml:'next',
            addClass:'newSliderInit',
            pager: true,
            adaptiveHeight: true,
            onSliderLoad: function() {
            $('#image-gallery').removeClass('cS-hidden');
}
});

Any help would be amazing! Have a great day all ...

Thanks in advance. Me

yatishmadhav commented 8 years ago

Hi there Anyone seen this? Still trying to solve this ... Thanks in advance

sachinchoolur commented 8 years ago

Hi, Sorry for the delayed response.. I have never experience such an issue.. Autoplay will be stopped on first user action (click next/prev OR use arrows). Please try to re-create the issue and provide a jsfiddle demo.. So that i will get a better idea about your issue..

yatishmadhav commented 8 years ago

Hi Sachin, Sorry for the delay response too. :+1: So I have added it on https://jsfiddle.net/Yatish/9ra9cqpn/ - so the banners stay for 7seconds but if i click on one of the icons at around 5/6 seconds the next banner stays for 2/1 second respectively. Also you MIGHT notice the click and drag seems glitch too? Please let me know what you see I may be doing wrong? Thanks so much

yatishmadhav commented 8 years ago

Hi there, Any feedback on this please? Thank you