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 scaling sliders ignoring the scale origin #29942

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

minetoblend
Copy link
Contributor

@minetoblend minetoblend commented Sep 20, 2024

Makes sure that when scaling sliders with the scale box, they are scaled relatively to the scale origin instead of the slider head.

In the second commit I'm restoring the previous behavior when scaling using the dedicated scale tool, to keep it matching stable's scale behavior, which scales relative to the slider head. If this is not wanted feel free to revert the second commit.

Before:

2024-09-20.17-05-57.mp4

After:

2024-09-20.17-15-02.mp4

It's not universally accepted here and a `when` crept in that can be
bypassed entirely using rather clean baseline language constructs, so
why bother at this point.
@pull-request-size pull-request-size bot added size/M and removed size/S labels Sep 24, 2024
Copy link
Collaborator

@bdach bdach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8643207 aside, I have no qualms about this

@bdach bdach merged commit 145f2b6 into ppy:master Sep 24, 2024
13 checks passed
@minetoblend minetoblend deleted the fix/slider-scale-origin branch September 24, 2024 15:36
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.

2 participants