Skip to content

app: Fix cursor position in windowed mode - #129

Merged
Goldzxcbug merged 1 commit into
SuperTurtleDev:mainfrom
supechicken:main
Nov 11, 2026
Merged

Goldzxcbug merged 1 commit into
SuperTurtleDev:mainfrom
supechicken:main

Conversation

@supechicken

Copy link
Copy Markdown

The value returned by MotionEvent getX/Y is relative to the activity window, including the title bar in desktop mode. This makes the cursor position shift down by the title bar height

To fix it, subtract the offset of SurfaceView to get the correct position

Signed-off-by: SupeChicken666 <me@supechicken666.dev>
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

Successfully merging this pull request may close these issues.

2 participants