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

fix: touch event absolute position #3078

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Conversation

coado
Copy link
Contributor

@coado coado commented Aug 30, 2024

Description

The PR fixes the issue mentioned here about the incorrect absolute positions on touch events. The view transformations should not affect the absolute position of the touch, so the source event should also be passed to gesture handlers and used for calculations. It applies to ACTION_DOWN, ACTION_MOVE, and ACTION_UP motion events.

Test plan

I've checked on android device for repro provided in the above-mentioned issue with some scroll offset.

@j-piasecki j-piasecki merged commit 94317a2 into main Sep 2, 2024
3 checks passed
@j-piasecki j-piasecki deleted the @dmalecki/event-absolute-coords branch September 2, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

onTouchesMove reports invalid absolute position values during pinch gesture
2 participants