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
We want to be able to determine if a tap is on the left or right side of the card, a couple approaches can work here:
Separate onTapLeft and onTapRight handlers
Pass through normalized coordinates to onTap (0.0, 0.0 is top left, 1.0, 1.0 is bottom right)
Second approach feels better in my opinion because you use can handle different things like a deadzone in the middle, or tapping the bottom of the card to expand.
The text was updated successfully, but these errors were encountered:
We want to be able to determine if a tap is on the left or right side of the card, a couple approaches can work here:
onTapLeft
andonTapRight
handlersonTap
(0.0, 0.0 is top left, 1.0, 1.0 is bottom right)Second approach feels better in my opinion because you use can handle different things like a deadzone in the middle, or tapping the bottom of the card to expand.
The text was updated successfully, but these errors were encountered: