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

When we leave the window invalidate our tracked cursor position #2121

Merged
merged 1 commit into from Mar 26, 2021

Conversation

andydotxyz
Copy link
Member

When we lose focus stop tracking mouse position as it will be invalid if other events appear.
Then we get a new position if a tap event occurs whilst we are in the background.

I could not find a way to unit test this because the position is returned directly from the GLFW C code...
Simple enough fix though.

Fixes #1857

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@andydotxyz andydotxyz merged commit 44bc05b into fyne-io:release/v2.0.x Mar 26, 2021
@andydotxyz andydotxyz deleted the fix/1857 branch March 26, 2021 16:11
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.

None yet

2 participants