harshavb / piously-old-ver

Welcome to Piously! This is a hexagonal 1v1 board game.
2 stars 0 forks source link

PiouslyLogo hovers/clicks not registered if mouse is moving while loading window #15

Closed ben9583 closed 3 years ago

ben9583 commented 4 years ago

If the user hovers/clicks the piously logo very quickly as the game is loading in, future hovers and clicks aren't registered until the game is restarted.

Following a more in-depth look at the issue, it seems as though UIEvents aren't being registered if the mouse is moving while the window is loading in. The required fix is to reload the application in some way—either by selecting on another app to focus on and back to the dotnet app or by just restarting the game.

ben9583 commented 4 years ago

Just some clarification on the issue: When the program starts and the mouse doesn't move until a second or two after the window loads, it works fine. Otherwise, no inputs are registered by the game and require the user to click on some other application to focus on that and then click back onto the dotnet app, which fixes the issue.

I've tried debugging the TestHoverableContainer, but when the issue is happening, the OnHover function does not run at all. This may just be a MacOS issue, so if someone on Windows could try this, that would be helpful too. In the meantime, I'm gonna delay this issue until we get more information.

harshavb commented 4 years ago

seems to only be an issue on mac

ben9583 commented 4 years ago

Issue has been forwarded to osu-framework: https://github.com/ppy/osu-framework/issues/3976

Suspending issue until a response is received.

ben9583 commented 3 years ago

Closing untill upstream update on issue.