When running on web with a Gesture.Pan(), there is an issue where the onStart callback will be fired if you toggled the enabled property from false to true. It does not occur if you leave it out (true by default).
Another observation, that unlike when you actually start making a dragging gesture, onBegin is not fired in this toggle of enabled case.
Description
When running on web with a Gesture.Pan(), there is an issue where the
onStart
callback will be fired if you toggled theenabled
property fromfalse
totrue
. It does not occur if you leave it out (true
by default).Another observation, that unlike when you actually start making a dragging gesture,
onBegin
is not fired in this toggle ofenabled
case.Seems to be similar in terms of side effects in https://github.com/software-mansion/react-native-gesture-handler/issues/1223#issuecomment-755026018 but for web
Screen Capture
https://github.com/user-attachments/assets/e85d829b-9689-4bc5-8517-c058eb93f1fc
Steps to reproduce
git clone git@github.com:frankcalise/flash-list-drag-order
yarn
yarn ios
oryarn android
(observer that toggling does not put the floating row on screen)yarn web
observe the issue described aboveSnack or a link to a repository
https://github.com/frankcalise/flash-list-drag-order
Gesture Handler version
2.16.2
React Native version
0.74.5
Platforms
Web
JavaScript runtime
Hermes
Workflow
Expo managed workflow
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
None
Device model
No response
Acknowledgements
Yes