Skip to content

Commit

Permalink
allow users to select text after swipe gesture (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski authored Feb 20, 2025
1 parent 1829bfa commit b0c51ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,13 @@ const Toast = (props: ToastProps) => {

deleteToast();
setSwipeOut(true);
setIsSwiped(false);

return;
} else {
toastRef.current?.style.setProperty('--swipe-amount-x', `0px`);
toastRef.current?.style.setProperty('--swipe-amount-y', `0px`);
}

setIsSwiped(false);
setSwiping(false);
setSwipeDirection(null);
}}
Expand Down

0 comments on commit b0c51ef

Please sign in to comment.