-
Notifications
You must be signed in to change notification settings - Fork 252
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
Ui not redrawing correctly when using WinitSettings::desktop_app()
#292
Comments
Here is a demonstration of the issue. When I click a button, it only appears blue after I wiggle the mouse: Untitled.mp4 |
Hi! I'm sorry to hear the update has broken the redraw functionality for you. |
Hi, |
No idea atm. :( |
I'm having the issue as well, with that PR (#293). MacOS. Screen.Recording.2024-07-22.at.5.15.49.PM.movI was coming at this issue from a different angle. I have a particular interest in spinners continuing to work after this change. if I add a spinner, you can see the buttons behave properly. Screen.Recording.2024-07-22.at.5.16.27.PM.movWhich makes sense, because spinners cause constant redraws. I will try to investigate this further. |
@jabuwu ah brilliant, I'm on macOS (M1) as well so it seems like it could be a Mac-related issue! I'll have to test the example and see if the issue still occurs, will let you know the results |
The thing is, I'm also on MacOS, and I still couldn't reproduce it. Now I can though. I don't know what has changed, maybe I was just unlucky or clumsy with my trackpad (e.g. moving the pointer accidentally after pressing a button), but that gives an opportunity to debug it at least 🙃 |
Just tested your example, and I can reproduce the issue - but only some of the time - sometimes when I click, everything works fine, and other times it doesn't fire enough redraws to show the button becoming blue. So seems like a luck thing, maybe the frequency of the issue happening is influenced by things like the refresh rate or your monitor or maybe ui complexity in the project.....? I can tell you that in my project it happens p much 100% of the time, and the UI there is quite a lot more complex |
I've just pushed another commit to #293 that should fix the issue. Please let me know if it indeed fixes it for you. @Maximetinu if you can double-check that it doesn't break redraws again, I'll also be grateful :D |
Yes, that fixes it for me. Thank you! |
I just double checked, it doesn't! |
It'd be nice writing an automatic test to cover this, replicating the repro steps that I described in #277
The given and the then are easy to set up in code, but I don't know how I can simulate the when reliably with no real window 🤔 Sending a |
* Attempt to reproduce #292 * Fix repaint corner cases
Drag release doesn't seem to trigger a redraw. See: vladbat00/bevy_egui#292
Hi,
this issue was fixed a few months ago in #240 but it seems to have cropped back up ever since I updated to bevy 0.14. I'm using
WinitSettings::desktop_app()
, and when e.g. clicking a button, the UI does not redraw until I move the mouse.This might have been broken by #278!
The text was updated successfully, but these errors were encountered: