mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
parent
ada6bb5baf
commit
e0d6b1f0fd
@ -67,6 +67,8 @@ export default Vue.extend({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
anime(reaction: string) {
|
anime(reaction: string) {
|
||||||
|
if (this.$store.state.device.reduceMotion) return;
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const rect = this.$refs[reaction].$el.getBoundingClientRect();
|
const rect = this.$refs[reaction].$el.getBoundingClientRect();
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@ import Particle from '../components/particle.vue';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
bind(el, binding, vn) {
|
bind(el, binding, vn) {
|
||||||
|
if (vn.context.$store.state.device.reduceMotion) return;
|
||||||
|
|
||||||
el.addEventListener('click', () => {
|
el.addEventListener('click', () => {
|
||||||
const rect = el.getBoundingClientRect();
|
const rect = el.getBoundingClientRect();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user