1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 23:42:54 +08:00

fix repeat sliders half

This commit is contained in:
OliBomby 2023-12-20 02:32:20 +01:00
parent 3aaf0b39f5
commit 66f4dcc578

View File

@ -65,7 +65,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
{
Color4 colour = colours.Yellow;
if (IsHovered)
if (IsHovered && Slider.RepeatCount % 2 == 0)
colour = colour.Lighten(1);
CirclePiece.Colour = colour;
@ -73,7 +73,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
protected override bool OnDragStart(DragStartEvent e)
{
if (e.Button == MouseButton.Right || !inputManager.CurrentState.Keyboard.ShiftPressed)
// Disable dragging if the slider has an uneven number of repeats because the slider tail will be on the wrong side of the path.
if (e.Button == MouseButton.Right || !inputManager.CurrentState.Keyboard.ShiftPressed || Slider.RepeatCount % 2 == 1)
return false;
isDragging = true;