[go: nahoru, domu]

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

Wrong Coordinate Handling #1840

Open
gavinweng opened this issue Jun 23, 2023 · 1 comment
Open

Wrong Coordinate Handling #1840

gavinweng opened this issue Jun 23, 2023 · 1 comment

Comments

@gavinweng
Copy link
gavinweng commented Jun 23, 2023

Why is x using y value?

downTime, eventTime, MotionEvent.ACTION_MOVE, coordinates[1], coordinates[1], 0);

Specifically the first coordinates[1] should be coordinates[0]

@ananci
Copy link
ananci commented Jun 26, 2023

Great catch, I'm working on a fix to this. This method is deprecated in favor of obtainMovement(MotionEvent, long, float[]) in the event you need to make something work immediately.

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

No branches or pull requests

2 participants