getgrav / grav-plugin-lightslider

Grav LightSlider Plugin
https://getgrav.org
MIT License
14 stars 15 forks source link

Autoplay stops after clicking the pager #13

Closed madelyncruz closed 8 years ago

madelyncruz commented 8 years ago

Clicking the next/prev pager works, but autoplay stops working. I've checked the plugin configurations, but seems like there's no configuration there like "enable/disable pause on controls". Is there any other way to continue the slider upon clicking the pager?

Below is my current configuration:

$(document).ready(function() { $("#Slider-ID").lightSlider({ item: 1, slideMove: 1, slideMargin: 0, mode: 'fade', cssEasing: 'ease', easing: '', speed: 1500, auto: true, loop: true, pause: 6000, controls: true, keyPress: true, adaptiveHeight: true, vertical: false, verticalHeight: 500, pager: false, gallery: false, galleryMargin: 15, thumbMargin: 5, enableTouch: true, enableDrag: false, }); });

madelyncruz commented 8 years ago

I've applied the js code provided in here http://sachinchoolur.github.io/lightslider/src/js/lightslider.js where the sample slider slides continuously after clicking the controls. I think this should be fixed in the next update.

flaviocopes commented 8 years ago

Looks like we need to update the Lightslider version installed

flaviocopes commented 8 years ago

Committed the update. Please test the new changes to confirm the issue is solved. It's not yet a release so you need to download the plugin code from here and put it under /user/plugins/lightslider/

madelyncruz commented 8 years ago

Hi flaviocopes,

I have tested the new update and it's working properly. The new configuration is a big help. Thank you.