angular-carousel
angular-carousel copied to clipboard
rn-carousel-locked does not work
setting rn-carousel-locked to true does not stop auto slide. This is because var:locked is overwritten to false in func:goToSlide.
Assuming, var:locked is used to prevent user from swiping the slide while animation is in progress, the root cause of rn-carousel-locked not working is that we overwrite value given by user to false after every slide animation is finished.
Fix would be save the value given by user in a separate variable and to check the value of this before calling func:nextSlide in func:autoSlide. I shall submit a pull request with the above fix soon.
+1