Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Carousel is breaking when trying to slide to previous slide more than once #79

Open
Yuripetusko opened this issue Jan 23, 2014 · 3 comments

Comments

@Yuripetusko
Copy link

Looks like "this._sliding" is returning true after multiple click on previous chevron even when sliding has stopped

@Yuripetusko
Copy link
Author

Looks like it's to do with a way you grab "next" item when clicking previous on line 51 in Carousel.js. As a quick and dirty solution for myself I fixed it by changing it to this from line 51 ->

next = next;
        if (!next) {
            if (type == 'prev') {
                next = children[children.indexOf(active) - 1]
            } else {
                next = children[children.indexOf(active) + 1]
            }
        }

@mediaxtend
Copy link
Contributor

I fixed this problem in my fork if you want.

@xsokev
Copy link
Owner

xsokev commented Mar 6, 2014

Thanks. I will merge today.

On Mar 6, 2014, at 12:28 PM, MediaXtend notifications@github.com wrote:

I fixed this problem in my fork if you want.


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants