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

Extend slider selection box bounds to contain all control points inside #28522

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jun 18, 2024

Previously, the selection box was only guaranteed to contain the actual body of the slider itself, the control point nodes were allowed to exit it. This lead to a lot of weird interactions with the selection box controls (rotation/drag handles, also the buttons under/over it) as the slider anchors could overlap with them.

To bypass this issue entirely just ensure that the selection box's size does include the control point nodes at all times.

before after
osu_2024-06-18_10-31-55 osu_2024-06-18_10-32-30

Previously, the selection box was only guaranteed to contain the actual
body of the slider itself, the control point nodes were allowed to exit
it. This lead to a lot of weird interactions with the selection box
controls (rotation/drag handles, also the buttons under/over it) as the
slider anchors could overlap with them.

To bypass this issue entirely just ensure that the selection box's size
does include the control point nodes at all times.
@OliBomby
Copy link
Contributor

I was concerned that this would push the selection box controls offscreen but in practice this happens very rarely and even if it happens, you can use the rotation and scale tools in the transform toolbox.
This is a good change.

@bdach bdach self-assigned this Jun 19, 2024
@peppy peppy self-requested a review July 3, 2024 07:30
@peppy peppy enabled auto-merge July 3, 2024 07:43
@peppy peppy merged commit 505b854 into ppy:master Jul 3, 2024
8 of 11 checks passed
@bdach bdach deleted the better-slider-selection-box-size branch July 3, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants