-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Carousel prev/next slide incorrect after double clicking page control #5967
Comments
@Skawt2k we're working on removing |
No need for that - this sounds like a potential issue with $animate not resolving correctly, it may be an Angular ngAnimate bug, but I need to investigate. |
@wesleycho, ok, sounds good. |
@wesleycho - Have you managed to investigate this issue at all? Is there a workaround that you know of? |
@stuartraines Yes, for now you can go to line approx 541 and comment out:
|
@tariqporter - Many thanks for the workaround. I can confirm that commenting out the lines specified above resolves the issue. Thx. |
@tariqporter - Thanks very much for taking the time to look into this and for the fix |
@tariqporter - I have commented out that part, but the issue still happens, any other solution I can fix that? |
@kive323 For any version of angular-ui, this solution has worked for me. I assume that code is meant to be buffering clicks that are too quick. For my purposes, this is not needed, so removing buffering is fine. Test with a new version of angular-ui |
@tariqporter I tried your solution and its working fine, Thanks. |
I have created a pull request to properly fix this issue, and not use the hack I provided above |
I'm still facing this issue, when I click on next button multiple times and click on prev button and click back on next button, it goes to previous slide. Sometimes, when I keep clicking on next button it will go to prev slide. Can you please tell me if this issue is fixed or is there a workaround (without using the hack)? |
@swapnilbhalgat As far as I know, the last update that I pushed fixed this issue in 2.5.0. I haven't seen it since |
Bug description:
When double clicking the previous/next control or clicking the previous/next control again before the current page transition has completed causes the controls and looping behaviour of the carousel to be incorrect/inconsistent.
Steps to reproduce
Visit http://angular-ui.github.io/bootstrap/ . The active slide is 0.
Double click the carousel next control. The active slide is now 1 as expected.
Click the previous control. The active slide now becomes 2, the carousel should actually transition to the previous slide instead of the next slide.
Move the pointer away from the carousel (out). The carousel will move to the next slide, this is not expected.
Note: This also happens after quick swipe successions with touch enabled.
Link that reproduces the issue:
This is an issue on the current angular-ui bootstrap demo site:
http://angular-ui.github.io/bootstrap/
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.3
UIBS: 1.3.3
Bootstrap: 3.6.6
The text was updated successfully, but these errors were encountered: