fix(settings): App Store Discover carousel animations are inverted

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-03-18 17:22:24 +01:00
parent 133a17aa96
commit 7c0a7de4df
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

View file

@ -101,12 +101,12 @@ export default defineComponent({
const internalId = computed(() => props.id ?? (Math.random() + 1).toString(36).substring(7))
const headingId = computed(() => `${internalId.value}-h`)
const transitionName = ref('slide-out')
const transitionName = ref('slide-in')
watch(() => currentIndex.value, (o, n) => {
if (o < n) {
transitionName.value = 'slide-out'
} else {
transitionName.value = 'slide-in'
} else {
transitionName.value = 'slide-out'
}
// Wait next tick