Changed inadvertent click prevention in actor tile scrolling for improved native interactions.

This commit is contained in:
DebaucheryLibrarian 2023-09-17 21:59:15 +02:00
parent 8b5eada088
commit 4a9aa62831
1 changed files with 3 additions and 11 deletions

View File

@ -41,9 +41,9 @@
/> />
</span> </span>
<a <RouterLink
:to="hasScrolled ? '' : { name: 'actor', params: { actorId: actor.id, actorSlug: actor.slug } }"
class="avatar-container" class="avatar-container"
@click="goToActor"
> >
<img <img
v-if="actor.avatar" v-if="actor.avatar"
@ -130,7 +130,7 @@
class="country" class="country"
/> />
</span> </span>
</a> </RouterLink>
</div> </div>
</div> </div>
</template> </template>
@ -138,13 +138,6 @@
<script> <script>
import Gender from './gender.vue'; import Gender from './gender.vue';
function goToActor() {
// can't seem to control behavior with RouterLink
if (!this.hasScrolled) {
this.$router.push({ name: 'actor', params: { actorId: this.actor.id, actorSlug: this.actor.slug } });
}
}
async function stashActor() { async function stashActor() {
this.favorited = true; this.favorited = true;
@ -215,7 +208,6 @@ export default {
methods: { methods: {
stashActor, stashActor,
unstashActor, unstashActor,
goToActor,
}, },
}; };
</script> </script>