Feat : cleaner wrapped card rotation
release-tag / release-image (push) Successful in 29s

This commit is contained in:
2024-05-17 15:45:58 +02:00
parent a44d383d15
commit 8fc6c60cf8
+1 -1
View File
@@ -35,7 +35,7 @@ function mouseleave(e: Event) {
watch( watch(
() => props.card_id, () => props.card_id,
() => { () => {
rotation.value = Math.random() > .5 ? 2 : -2 props.wrapped ? rotation.value = (Math.random() * 4) - 2 : rotation.value = Math.random() > .5 ? 2 : -2
}, },
{ immediate: true }) { immediate: true })
</script> </script>