summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-19 00:25:35 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-19 00:25:35 +0900
commit423dc2349bd7f987f72060aba4e155264ffb6361 (patch)
treeb90ac363f1422ab9596f1318eeb9efcd4bb07d3c /src
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-423dc2349bd7f987f72060aba4e155264ffb6361.tar.gz
sharkey-423dc2349bd7f987f72060aba4e155264ffb6361.tar.bz2
sharkey-423dc2349bd7f987f72060aba4e155264ffb6361.zip
[Client] Improve performance
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/reactions-viewer.vue1
1 files changed, 1 insertions, 0 deletions
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();