Skip to content
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

Fix right clicks on timeline potentially not working as expected #25304

Merged
merged 5 commits into from Oct 30, 2023

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Oct 30, 2023

…yfield area

`SelectionHandler` is receiving input from anywhere out of necessity:

https://github.com/ppy/osu/blob/19f892687a0607afbe4e0d010366dc2a66236073/osu.Game/Screens/Edit/Compose/Components/SelectionHandler.cs#L119-L125

Also important is that `BlueprintContainer` will selectively not block
right clicks to make sure they fall through to the
`ContextMenuContainer`:

https://github.com/ppy/osu/blob/19f892687a0607afbe4e0d010366dc2a66236073/osu.Game/Screens/Edit/Compose/Components/BlueprintContainer.cs#L122-L126

But because the whole editor is sharing a `ContextMenuContainer` and
it's at a higher level than both components, we observe here the
playfield's `SelectionHandler` intercepting the right click before it
can reach the `ContextMenuContainer`.

The fix here is similar to what we're already doing in
`TimelineBlueprintContaienr`.
@bdach bdach enabled auto-merge October 30, 2023 11:52
@bdach bdach disabled auto-merge October 30, 2023 14:03
@bdach bdach merged commit 30ffb15 into ppy:master Oct 30, 2023
13 of 17 checks passed
@peppy peppy deleted the fix-click-through-timeline branch November 1, 2023 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Right clicking an object in the hit object timeline incorrectly selects playfield objects
2 participants