Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bdach
Copy link
Collaborator

@bdach bdach commented Aug 21, 2025

Closes #34731.

The failure scenario here is as follows:

  • User holds down left mouse button for >200ms to reveal the background.
  • User presses down another mouse button and releases it in <200ms.
  • User releases left mouse button. Song select does not return.

The timing here is key because what is happening here is that the second mouse button press is overwriting the revealingBackground scheduled delegate. Releasing that same mouse button within 200ms leads to that scheduled delegate being cancelled and cleared, and thus the release of left mouse wrongly decides there is nothing left to do.

One thing I'm not entirely sure about is the release behaviour even with this change; as things stand, the first release of any mouse button will bring song select back, even if it was not the button that was initially held down to reveal the background. That's probably easily fixed if deemed required, but I'm most interested in fixing the bad breakage.

Closes ppy#34731.

The failure scenario here is as follows:

- User holds down left mouse button for >200ms to reveal the background.
- User presses down another mouse button and releases it in <200ms.
- User releases left mouse button. Song select does not return.

The timing here is key because what is happening here is that the second
mouse button press is overwriting the `revealingBackground` scheduled
delegate. Releasing that same mouse button within 200ms leads to that
scheduled delegate being cancelled and cleared, and thus the release of
left mouse wrongly decides there is nothing left to do.

One thing I'm not entirely sure about is the release behaviour even with
this change; as things stand, the first release of any mouse button will
bring song select back, even if it was not the button that was initially
held down to reveal the background. That's probably easily fixed if
deemed required, but I'm most interested in fixing the bad breakage.
@bdach bdach requested a review from peppy August 21, 2025 09:34
@bdach bdach self-assigned this Aug 21, 2025
@bdach bdach added area:song-select quick fix Tasks which were taken on because they take no time to fix labels Aug 21, 2025
@peppy peppy merged commit 30f7da8 into ppy:master Aug 21, 2025
6 of 9 checks passed
@bdach bdach deleted the BACKGROUND-STUCK-PLEASE-I-BEG-YOU branch August 21, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:song-select quick fix Tasks which were taken on because they take no time to fix size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hold to Show Background Gets Stuck If You Right Click

2 participants