-
Notifications
You must be signed in to change notification settings - Fork 253
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
Clicks lost in reactive mode #302
Comments
I think I've noticed it sometimes as well. I haven't got a chance to look into that myself yet, but if anyone wants to submit a PR with a fix, I'm more than happy to merge it. |
Oh, btw, could you try reproducing it with the 0.29 version? There were some changes merged that fix redraws, but I'm not sure if they cover this issue. |
Just tested with 0.29, it still happens |
I found a clue: |
Well, I think the issue is essentially caused by bevyengine/bevy#14682 The time we report to egui is
Even though there was only 0.1s between press and release, the reported elapsed_seconds will be delayed by a few frames, so egui will perceive it as 2s so it will not register the click. I can see two workarounds, though I'm not sure either of them really address the root issue:
|
Button clicks are sometimes lost in reactive mode.
To reproduce, run this example:
Click the button multiple times, and sometimes the counter will not increment
The text was updated successfully, but these errors were encountered: