We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
case MotionEvent.ACTION_POINTER_UP: actionIndex = event.getActionIndex(); int pointerId = event.getPointerId(actionIndex); if (pointerId == trackingPointerId) { int newIndex; if (actionIndex == event.getPointerCount() - 1) { newIndex = event.getPointerCount() - 2; } else { newIndex = event.getPointerCount() - 1; } trackingPointerId = event.getPointerId(newIndex); downX = event.getX(actionIndex); downY = event.getY(actionIndex); originalOffsetX = offsetX; originalOffsetY = offsetY; } break;
need change to
case MotionEvent.ACTION_POINTER_UP: actionIndex = event.getActionIndex(); int pointerId = event.getPointerId(actionIndex); if (pointerId == trackingPointerId) { int newIndex; if (actionIndex == event.getPointerCount() - 1) { newIndex = event.getPointerCount() - 2; } else { newIndex = event.getPointerCount() - 1; } trackingPointerId = event.getPointerId(newIndex); downX = event.getX(newIndex); downY = event.getY(newIndex); originalOffsetX = offsetX; originalOffsetY = offsetY; } break;
The text was updated successfully, but these errors were encountered:
I think you are right. downX & downY should use newIndex.
Sorry, something went wrong.
No branches or pull requests
need change to
The text was updated successfully, but these errors were encountered: