From 423dc2349bd7f987f72060aba4e155264ffb6361 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Dec 2018 00:25:35 +0900 Subject: [PATCH] [Client] Improve performance --- src/client/app/common/views/components/reactions-viewer.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/app/common/views/components/reactions-viewer.vue b/src/client/app/common/views/components/reactions-viewer.vue index a651afe7c8..73267347b3 100644 --- a/src/client/app/common/views/components/reactions-viewer.vue +++ b/src/client/app/common/views/components/reactions-viewer.vue @@ -68,6 +68,7 @@ export default Vue.extend({ }, anime(reaction: string) { if (this.$store.state.device.reduceMotion) return; + if (document.hidden) return; this.$nextTick(() => { const rect = this.$refs[reaction].$el.getBoundingClientRect();