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

Fix: Incorrect mouse position on canvas LWJGL3 (Canvas) #2332

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JNightRider
Copy link
Contributor

This PR resolves bad mouse position when using canvas with lwjgl3, this fixes issue #2327 (Cursor centered on click -> flying camera with setDragToRotate(true) option enabled).

Now when the cursor is grabbed, if there is a point (coordinates) coming from the user, the cursor will stay at that position; otherwise it will focus on the component (canvas).

Copy link
Member

@MeFisto94 MeFisto94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't comment on the functionality, probably needs testing, but code wise it looks good

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