mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 14:23:09 +02:00
parent
4f071a66b6
commit
7e2b70f912
2 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,8 @@ export default Vue.extend({
|
|||
});
|
||||
},
|
||||
anime(reaction: string) {
|
||||
if (this.$store.state.device.reduceMotion) return;
|
||||
|
||||
this.$nextTick(() => {
|
||||
const rect = this.$refs[reaction].$el.getBoundingClientRect();
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ import Particle from '../components/particle.vue';
|
|||
|
||||
export default {
|
||||
bind(el, binding, vn) {
|
||||
if (vn.context.$store.state.device.reduceMotion) return;
|
||||
|
||||
el.addEventListener('click', () => {
|
||||
const rect = el.getBoundingClientRect();
|
||||
|
||||
|
|
Loading…
Reference in a new issue