Skip to content

Change editor grid slider adjustments to be relative to centre#37737

Merged
bdach merged 2 commits into
ppy:masterfrom
peppy:grid-offset-centered
May 13, 2026
Merged

Change editor grid slider adjustments to be relative to centre#37737
bdach merged 2 commits into
ppy:masterfrom
peppy:grid-offset-centered

Conversation

@peppy
Copy link
Copy Markdown
Member

@peppy peppy commented May 13, 2026

As requested in #37734.

Quick one, seems beneficial.

As requested in ppy#37734.

Quick one, seems beneficial.
@bdach
Copy link
Copy Markdown
Collaborator

bdach commented May 13, 2026

@OliBomby any objections?

@OliBomby
Copy link
Copy Markdown
Contributor

@OliBomby any objections?

No objections. This makes sense

@bdach bdach self-requested a review May 13, 2026 11:02
Copy link
Copy Markdown
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.

Frankly shocked that this five-way bindable synchronisation setup doesn't die on stack overflows because in general you can't do this type of stuff because of floats.

float p = 19.1f;
Console.WriteLine(p); // 19,1
float q = p + 256;
float r = q - 256;
Console.WriteLine(r); // 19,100006
Console.WriteLine(p == r); // False

It's probably salvaged by BindableNumber.Precision. Couldn't get it to crash on a quick manual check and I'm not doing a sweep over all values of float to be sure. Prolly just gonna fix in post if it does actually ever crash.

@bdach bdach merged commit ba15798 into ppy:master May 13, 2026
7 of 10 checks passed
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.

3 participants