Different platforms behave differently. I got a negative value when I moved the pointer to the top of the screen on Android but got 0 for iOS. I need this value to calculate if the pointer is in a specified element area, so when I use this value to compare with a pageY value, it gives a wrong result.
PS: I found that normally the value varies on ios and Android makes sense because StatusBar occupied some height on Android. But when StatusBar is set to translucent, the value is not correct enough anymore.
Steps to reproduce
Just get an absoluteY value from onUpdate function
Description
Different platforms behave differently. I got a negative value when I moved the pointer to the top of the screen on Android but got 0 for iOS. I need this value to calculate if the pointer is in a specified element area, so when I use this value to compare with a pageY value, it gives a wrong result.
PS: I found that normally the value varies on ios and Android makes sense because StatusBar occupied some height on Android. But when StatusBar is set to translucent, the value is not correct enough anymore.
Steps to reproduce
Just get an
absoluteY
value fromonUpdate
functionSnack or a link to a repository
null
Gesture Handler version
2.13.1
React Native version
0.72.6
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes