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.53k forks source link

lSPager still showing when there is only one image #448

Open davecar21 opened 4 years ago

davecar21 commented 4 years ago

Is this expected behavior when there is only one image in the slider the lSPager is still showing. Also this occurs on lightGallery when there is only one image, it shows 1 thumb image. I think it is because of the autoWidth:true that causes this.

https://codepen.io/davecar21/pen/KKwMWJO image

$('#autoWidth').lightSlider({
        autoWidth:true,
        loop:true,
        enableDrag: false,
        onSliderLoad: function() {
        } 
    });

I wanted to hide the lSPager when there is only one image in the slider. I can be able to do these via adding code on onSliderLoad.

but is there any other way to be able to hide lSPager when there is one image on the slider?