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
I use RNTableView with custom cell,cell have touch-events too,when I tap --> hold --> scroll --> release
,it performance as expect , then when i quickly drag it and release immediately, it will call tap action. I find that, when single tap or drag and release, the behavior of RCTTouchHandler are the same touchBegan, touchMove(sometimes don‘t call), touchEnd,in almost 0.05s. JS can not distinguish these two gesture.
I tried calculate time, it doesn't work because these two cost almost same time;
I tried to override shouldRequireFailureOfGestureRecognizer method in RCTTouchHandler, but I cannot prevent the touchEnd event;
I look up iOS system UIScrollView, find out that system have a gesture called UIScrollViewDelayedTouchesBeganGestureRecognizer when this called, other gesture will be cancelled. Also I find docs in RCTScrollView, "For React scroll
views, we want the default to be the same behavior as UIControls", so i'm so confused and looking forward for some help, please give me some advise, thanks a lot.
The text was updated successfully, but these errors were encountered:
Hey @ShrinkLynn not sure how much info I can provide on this. I have experience with native iOS but I'm mainly a js developer. I'll cc @aksonov to see if he can help you on this
I use RNTableView with custom cell,cell have touch-events too,when I tap --> hold --> scroll --> release
,it performance as expect , then when i quickly drag it and release immediately, it will call tap action. I find that, when single tap or drag and release, the behavior of RCTTouchHandler are the same touchBegan, touchMove(sometimes don‘t call), touchEnd,in almost 0.05s. JS can not distinguish these two gesture.
I tried calculate time, it doesn't work because these two cost almost same time;
I tried to override shouldRequireFailureOfGestureRecognizer method in RCTTouchHandler, but I cannot prevent the touchEnd event;
I look up iOS system UIScrollView, find out that system have a gesture called UIScrollViewDelayedTouchesBeganGestureRecognizer when this called, other gesture will be cancelled. Also I find docs in RCTScrollView, "For React scroll
views, we want the default to be the same behavior as
UIControl
s", so i'm so confused and looking forward for some help, please give me some advise, thanks a lot.The text was updated successfully, but these errors were encountered: