Skip to content

Avoid repaints on device mouse motion outside window#7866

Open
inktomi wants to merge 3 commits intoemilk:mainfrom
inktomi:fix/device-mouse-repaint
Open

Avoid repaints on device mouse motion outside window#7866
inktomi wants to merge 3 commits intoemilk:mainfrom
inktomi:fix/device-mouse-repaint

Conversation

@inktomi
Copy link

@inktomi inktomi commented Jan 27, 2026

Summary

  • Ignore raw device mouse motion unless the window is focused and the pointer is inside it
    • Also handles pointers starting down and then moving into or out of the window (drag & drop)
  • Prevents global mouse motion from triggering continuous repaint loops
  • Applies to both glow and wgpu backends

Testing

  • I ran the check script, nothing seemed to fail

@github-actions
Copy link

Preview is being built...

Preview will be available at https://egui-pr-preview.github.io/pr/7866-fix/device-mouse-repaint

View snapshot changes at kitdiff

@inktomi inktomi requested a review from lucasmerlin as a code owner February 8, 2026 19:30
Copy link
Author

Choose a reason for hiding this comment

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

I noticed what I think are a couple typos here, hope it's ok to include with the other PR.

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