Sliding stops working after opening scaled version of slider #4216
-
I have a slider, and when I click on one of the images it contains, the bigger slider containing the same images is created and displayed, and all other elements are hidden. But if I click exactly on the first image of the first slider slide a little bit through the bigger slider and then close the bigger slider, the smaller slider stops working: sliding doesn't work. I noticed that if I disable autoplay property of the first slider, everything works just fine. jsfiddle of the case when autoplay is enabled (not working): https://jsfiddle.net/seLn6c3w/ jsfiddle of the case when autoplay is disabled (working): https://jsfiddle.net/0dkqubc1/28/ How can I make everything work fine even if autoplay property of the first slider is enabled? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You need to stop autoplay on small slider when you hide it, and start autoplay when it becomes again visible |
Beta Was this translation helpful? Give feedback.
-
If somebody will ever encounter the same problem as I did, here's the solution.
This helped. Everyrhing works just fine now |
Beta Was this translation helpful? Give feedback.
If somebody will ever encounter the same problem as I did, here's the solution.
In album_images_slider click handler (see jsfiddle link) I wrote these lines of code:
This helped. Everyrhing works just fine now