diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-12-19 00:25:35 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-12-19 00:25:35 +0900 |
| commit | 423dc2349bd7f987f72060aba4e155264ffb6361 (patch) | |
| tree | b90ac363f1422ab9596f1318eeb9efcd4bb07d3c /src | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-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.vue | 1 |
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(); |