forked from DebaucheryLibrarian/traxxx
Changed inadvertent click prevention in actor tile scrolling for improved native interactions.
This commit is contained in:
parent
8b5eada088
commit
4a9aa62831
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue