[Client] Improve performance

This commit is contained in:
syuilo 2018-12-19 00:25:35 +09:00
parent f0e7946c5b
commit 445da093f5

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