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

Pointer up event is ignored when screen rotating, causing touch pointer to stay #4925

Open
2 tasks done
yume-chan opened this issue May 15, 2024 · 1 comment
Open
2 tasks done

Comments

@yume-chan
Copy link
Contributor

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows 11
  • scrcpy version: 2.4
  • installation method: Windows release
  • device model:
  • Android version: [e.g. 10]

Describe the bug

When device screen is rotating, there is a time window when the client sends touch events with incorrect screen size. These touch events are ignored by the server due to the incorrect screen size.

Normally this is fine, although the pointer stays on device screen, next time the mouse button is pressed, it's replaced by the new state. Except when the client side has a touch screen, because each finger has a different ID, the finger with ignored touch up event will stay permanently on device screen, causing incorrect behavior in apps. The only solution is to restart Scrcpy.

This can happen for example when user taps the full screen button in a video player, causing the screen to rotate. Or by releasing finger while using Alt + R to rotate the screen.

@rom1v
Copy link
Collaborator

rom1v commented May 15, 2024

Thank you for the report. I will think about it.

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