react-native-gesture-handler
react-native-gesture-handler copied to clipboard
Fix major issues with `LongPress` gesture on web
Description
This PR solves a few issues with LongPress gesture on web:
- adds a
durationproperty to events send by the gesture - fixes a bug where
onBeginandonStartwould not be called because of wrongoldStatevalue in the events sent by the web implementation - fixes a bug where no events would be called if the gesture failed, now it correctly calls
onBeginandonFinalizeif the press time is too short
(Mostly) fixes https://github.com/software-mansion/react-native-gesture-handler/issues/2063
Test plan
Tested on the Example app.