forked from mirror/misskey
[Client] Improve performance
This commit is contained in:
parent
0556a2a2da
commit
423dc2349b
@ -68,6 +68,7 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
anime(reaction: string) {
|
anime(reaction: string) {
|
||||||
if (this.$store.state.device.reduceMotion) return;
|
if (this.$store.state.device.reduceMotion) return;
|
||||||
|
if (document.hidden) return;
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const rect = this.$refs[reaction].$el.getBoundingClientRect();
|
const rect = this.$refs[reaction].$el.getBoundingClientRect();
|
||||||
|
Loading…
Reference in New Issue
Block a user