Skip to content

Fix missing repaint after consume_key#7134

Merged
lucasmerlin merged 2 commits intomainfrom
lucas/fix-missing-repaint-after-consume-key
Jun 13, 2025
Merged

Fix missing repaint after consume_key#7134
lucasmerlin merged 2 commits intomainfrom
lucas/fix-missing-repaint-after-consume-key

Conversation

@lucasmerlin
Copy link
Collaborator

Usually input events automatically trigger a repaint. But since consume_key would remove the event egui would think there were no events and not trigger a repaint. This fixes it by setting a flag on InputState on consume_key.

@lucasmerlin lucasmerlin added bug Something is broken egui rerun Desired for Rerun.io labels Jun 11, 2025
@lucasmerlin lucasmerlin force-pushed the lucas/fix-missing-repaint-after-consume-key branch from 8b8fc66 to 522f4f3 Compare June 11, 2025 09:34
@github-actions
Copy link

Preview available at https://egui-pr-preview.github.io/pr/7134-lucasfix-missing-repaint-after-consume-key
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Ah, ofc 👍

@lucasmerlin lucasmerlin requested a review from emilk June 12, 2025 07:49
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

LGTM if tested!
Thanks for taking this

@lucasmerlin lucasmerlin merged commit 4c04996 into main Jun 13, 2025
47 checks passed
@lucasmerlin lucasmerlin deleted the lucas/fix-missing-repaint-after-consume-key branch June 13, 2025 12:06
Wumpf added a commit to rerun-io/rerun that referenced this pull request Jun 16, 2025
### Related
* Closes #10165
* Includes emilk/egui#7134
* All changes:
emilk/egui@f0abce9...54fded3

### Updated snapshot images
For some reason, the `…` more buttons has become slightly sharper. Maybe
related to the recent atomics work?

---------

Co-authored-by: Andreas Reich <andreas@rerun.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is broken egui rerun Desired for Rerun.io

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants