Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image will not switch immediately when next or previous continuously called #24

Open
Xierq522 opened this issue Sep 1, 2020 · 1 comment

Comments

@Xierq522
Copy link

Xierq522 commented Sep 1, 2020

Image will not switch immediately when next or previous continuously called

@AlbanCrepel
Copy link
Owner

Hi @RqwithQw ! Thanks for using this component ! Yes, this behavior is intended as we can see on lines 182 and 203 of VueDisplacementSlideshow.vue, on the methods previous and next :

if (this.isAnimating) {
    return;
}

When we are currently animating to the next or previous image, we don't do anything

I haven't thought about how to do it properly when spamming next() or previous methods. Feel free to make a pull request if you manage to implement it well. If not, I'll have a look at it when I'll have some time.

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

No branches or pull requests

2 participants