1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-02 00:38:31 +09:00

[Client] Improve performance

This commit is contained in:
syuilo 2018-12-19 00:25:35 +09:00
parent 0556a2a2da
commit 423dc2349b
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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();