summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-08-29 05:20:27 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-08-29 05:20:27 +0900
commit423f776ed0bbf9b7a13d64a0963a3d0b92a7faf3 (patch)
tree885009f8a132ca8ad0adecb6c0903293a3d337e9 /src/client/app
parentRefactor reactions-viewer.vue (#5358) (diff)
downloadsharkey-423f776ed0bbf9b7a13d64a0963a3d0b92a7faf3.tar.gz
sharkey-423f776ed0bbf9b7a13d64a0963a3d0b92a7faf3.tar.bz2
sharkey-423f776ed0bbf9b7a13d64a0963a3d0b92a7faf3.zip
Perform animation only when reaction is added (#5359)
Diffstat (limited to 'src/client/app')
-rw-r--r--src/client/app/common/views/components/reactions-viewer.reaction.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/reactions-viewer.reaction.vue b/src/client/app/common/views/components/reactions-viewer.reaction.vue
index 611a65a611..02ee87b093 100644
--- a/src/client/app/common/views/components/reactions-viewer.reaction.vue
+++ b/src/client/app/common/views/components/reactions-viewer.reaction.vue
@@ -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: {