You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason I couldn't get this to work so I gave up. Every time the state updated the position get reset, even though it was wrapped in a useRef. This resulted in a bug where the card would snap back to the center while you were dragging it, every time you passed the card over the mid-line (which triggered setSwipeDirection).
The text was updated successfully, but these errors were encountered:
ajenkins
changed the title
Refactor to be functional component with hooks
Refactor to be a functional component and use hooks
Dec 16, 2019
ajenkins
changed the title
Refactor to be a functional component and use hooks
Refactor to a functional component and use hooks
Dec 16, 2019
For some reason I couldn't get this to work so I gave up. Every time the state updated the position get reset, even though it was wrapped in a useRef. This resulted in a bug where the card would snap back to the center while you were dragging it, every time you passed the card over the mid-line (which triggered setSwipeDirection).
The text was updated successfully, but these errors were encountered: