react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

waitFor taps on web only works if the components overlap

Open miracle2k opened this issue 4 years ago • 2 comments

See this example:

https://snack.expo.io/7ZTv9L6CR

You can click on either the orange area or the background on Android. You can no longer click on the background on web, presumably because it is waiting for a "rejected" message from that child handler which never arrives.

miracle2k avatar Apr 22 '20 13:04 miracle2k

I note that the default behaviour on mobile seems to be that only one of the handlers triggers, even if waitFor is not used. This is not the case on the web, where both handlers trigger.

miracle2k avatar Apr 22 '20 13:04 miracle2k

Hi, this issue should be fixed in 2.6.1.

Note that this change is available in new web implementation. To enable it, call enableExperimentalWebImplementation() in the root of your project

m-bert avatar Sep 21 '22 12:09 m-bert

I'll close the issue since the new web implementation is enabled by default starting with 2.10.0.

j-piasecki avatar May 17 '23 10:05 j-piasecki