fix swiping
This commit is contained in:
parent
527d4b0bfb
commit
b692e14690
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user