Hi, I am using flexslider on a website, were the client can add images to several sliders on the page. However, if a slider only contains one li or image, how can I disable the swipe functionality? On desktop it works fine it just disables the control and direction -navs , and it does so on mobile devices aswell but I can still swipe through images.
And you think it is this easy? it is not. First of, disabling touch with touch: false; disables touch for all sliders, and this is not only swiping, this disables vertical scrolling and tapping aswell, and since several of the images work as links that is not very good. Also as I said in the topic (maybe I was a bit unclear my english aint the best) I only want to disable swiping if the slider has <= 1 images.
I tried some if/else conditions, (not the same as above) but it didn’t really work. Don’t have the code on this computer so cannot show it right now tho.
What I want to do I guess is pretty obvious if u check my script=) I want to disable touch/swipe if the slider only has one <li>, and enable if it has more.