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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPointerCount return 1 when I touch two fingers #798

Open
Dempsey666-aiiy opened this issue May 24, 2021 · 1 comment
Open

getPointerCount return 1 when I touch two fingers #798

Dempsey666-aiiy opened this issue May 24, 2021 · 1 comment

Comments

@Dempsey666-aiiy
Copy link

馃悰 Bug Report

I just use photoview in my project,and I find when I touch two fingers on the screen ,if the distance between fingers is not far ,then getPointerCount() will return 1 not 2.The distance maybe 3or 4 cm.

Version: not clear(maybe the lastest)

Platform: 馃 Android 9.0

@minalmodasiya
Copy link

Hi, here is a solution for this issue,, getPointerCount() returns 2 when two fingers touch..

int action = (motionEvent.getAction() & MotionEvent.ACTION_MASK) % 5
switch(action) {
case MotionEvent.ACTION_DOWN:
System.out.println(motionEvent.getPointerCount());
break;
}

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