[FIX] onTouchMove on mobile web does not trigger#1079
[FIX] onTouchMove on mobile web does not trigger#1079erictraut merged 2 commits intomicrosoft:masterfrom
Conversation
|
Adding onTouchMove to the public interface of RX.View isn't in keeping with the general philosophy of ReactXP because it's platform-specific (notably, the web). We should consider alternative approaches such as:
|
|
Thanks for the precision of the general philosophy. Regarding the alternative approches: => Bind onTouchMove to the onResponderMove: |
|
Just made the modification, waiting for your feedback. |
|
To add to the onResponder cause: I am facing a new case where an other missing web touch handler ( Here is the current result. It is a Fast Action Button. It works this way: 1- I long press the bottom right FAB This case works with So I already need to implement two new handlers. And I guess some others in near futur. I would start with those handlers: There are also those handlers, but I don't find any doc on them. If you are agree I will update this PR this way. |
|
Yeah, this solution looks good to me. Thanks. |
|
I jumped the gun on merging your initial PR for onTouchMove. Your plan above sounds good. Please submit a new PR with the other three responder callbacks bound as well. |

Depends on #1078 for testing on mobile.
Issue:
View.onTouchMove handler is not available on mobile web.
This commit does the following:
Note
Weird lint error forces me to force cast the TouchEvent handler
Full error: