Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get wrong, negative value from e.absoluteY on Android #2816

Closed
doublelam opened this issue Mar 20, 2024 · 1 comment · Fixed by #2826
Closed

Get wrong, negative value from e.absoluteY on Android #2816

doublelam opened this issue Mar 20, 2024 · 1 comment · Fixed by #2826
Labels
Missing repro Platform: Android This issue is specific to Android

Comments

@doublelam
Copy link

doublelam commented Mar 20, 2024

Description

image

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

Snack 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

Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro Platform: Android This issue is specific to Android
Projects
None yet
1 participant