Perform animation only when reaction is added (#5359)

This commit is contained in:
Aya Morisawa 2019-08-29 05:20:27 +09:00 committed by syuilo
parent 1a9e651da1
commit 33f0be9e6e

View file

@ -49,8 +49,8 @@ export default Vue.extend({
if (!this.isInitial) this.anime();
},
watch: {
count() {
this.anime();
count(newCount, oldCount) {
if (oldCount < newCount) this.anime();
},
},
methods: {