Skip to content

Commit

Permalink
fix: handle tap concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
enzomanuelmangano committed Oct 8, 2024
1 parent de1175c commit 58da1db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pressables/render-scroll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ let timeout: NodeJS.Timeout | null = null;

const callbacks = {
onTouchStart: () => {
scrollableInfoShared.value = {
...scrollableInfoShared.value,
activatedTap: false,
};
timeout = setTimeout(() => {
scrollableInfoShared.value = {
...scrollableInfoShared.value,
Expand Down

0 comments on commit 58da1db

Please sign in to comment.