mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
[Client] Improve performance
This commit is contained in:
parent
f0e7946c5b
commit
445da093f5
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue