lukaszflorczak / vue-agile

🎠 A carousel component for Vue.js
https://lukaszflorczak.github.io/vue-agile/
MIT License
1.49k stars 167 forks source link

@after-change fires immediately after @before-change, even if :speed="3000" #190

Open TitanFighter opened 4 years ago

TitanFighter commented 4 years ago

Describe the bug @after-change fires immediately after @before-change, even if :speed="3000"

Code

<VueAgile
    :speed="3000"
    @before-change="test(true)"
    @after-change="test(false)"
>

and

methods: {
    test (trueOrFalse) {
        console.log('trueOrFalse:', trueOrFalse)
    }
}

Expected behavior As I understand, @after-change must be fired once animation stopped.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.87. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.