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

TwoFingerGestureDetector : IllegalArgumentException: pointerIndex out of range #39

Open
riggaroo opened this issue Jun 4, 2021 · 1 comment

Comments

@riggaroo
Copy link

riggaroo commented Jun 4, 2021

We are getting this crash in the TwoFingerGestureDetector.

Fatal Exception: java.lang.IllegalArgumentException: pointerIndex out of range
       at android.view.MotionEvent.nativeGetAxisValue(MotionEvent.java)
       at android.view.MotionEvent.getX(MotionEvent.java:2379)
       at com.almeros.android.multitouch.TwoFingerGestureDetector.updateStateByEvent(TwoFingerGestureDetector.java:77)
       at com.almeros.android.multitouch.RotateGestureDetector.handleInProgressEvent(RotateGestureDetector.java:136)
       at com.almeros.android.multitouch.BaseGestureDetector.onTouchEvent(BaseGestureDetector.java:66)
@Almeros
Copy link
Owner

Almeros commented Jun 8, 2021

Can you elaborate a bit more on when and how you get this (how to reproduce)?

Looks like somehow getX(...) can't find the pointerIndex of value '1' it's given here, which is strange when the 'Two'FingerGestureDetector is used. So, perhaps you are moving a finger/pointer out of the screen when this happens?

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