angular-carousel icon indicating copy to clipboard operation
angular-carousel copied to clipboard

rn-carousel-locked does not work

Open trojanware opened this issue 8 years ago • 1 comments

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.

trojanware avatar Sep 17 '15 11:09 trojanware

+1

jonatasfreitasv avatar Nov 17 '15 21:11 jonatasfreitasv