fix swiping
This commit is contained in:
@@ -85,7 +85,11 @@ watch(
|
||||
);
|
||||
|
||||
const handleDragEnd = () => {
|
||||
if (Math.abs(x.get()) > 50) {
|
||||
if (x.get() > 50) {
|
||||
cardStore.smashList.push(currentCard.value);
|
||||
cardStore.removeCard(currentCard?.value.id);
|
||||
} else if (x.get() < -50) {
|
||||
cardStore.passList.push(currentCard.value);
|
||||
cardStore.removeCard(currentCard?.value.id);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user