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>
<a
<RouterLink
:to="hasScrolled ? '' : { name: 'actor', params: { actorId: actor.id, actorSlug: actor.slug } }"
class="avatar-container"
@click="goToActor"
>
<img
v-if="actor.avatar"
@ -130,7 +130,7 @@
class="country"
/>
</span>
</a>
</RouterLink>
</div>
</div>
</template>
@ -138,13 +138,6 @@
<script>
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() {
this.favorited = true;
@ -215,7 +208,6 @@ export default {
methods: {
stashActor,
unstashActor,
goToActor,
},
};
</script>