scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

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

Open yume-chan opened this issue 1 month ago • 1 comments

  • [x] I have read the FAQ.
  • [x] 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.

yume-chan avatar May 15 '24 04:05 yume-chan