mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 11:37:32 +09:00
Fix slider path control point blueprint not working correctly
This commit is contained in:
parent
3e0ee310d0
commit
af30d1201f
@ -162,8 +162,9 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
|
|||||||
if (ControlPoint == slider.Path.ControlPoints[0])
|
if (ControlPoint == slider.Path.ControlPoints[0])
|
||||||
{
|
{
|
||||||
// Special handling for the head control point - the position of the slider changes which means the snapped position and time have to be taken into account
|
// Special handling for the head control point - the position of the slider changes which means the snapped position and time have to be taken into account
|
||||||
var result = snapProvider?.SnapScreenSpacePositionToValidTime(e.MousePosition);
|
var result = snapProvider?.SnapScreenSpacePositionToValidTime(e.ScreenSpaceMousePosition);
|
||||||
Vector2 movementDelta = (result?.ScreenSpacePosition ?? e.MousePosition) - slider.Position;
|
|
||||||
|
Vector2 movementDelta = Parent.ToLocalSpace(result?.ScreenSpacePosition ?? e.ScreenSpaceMousePosition) - slider.Position;
|
||||||
|
|
||||||
slider.Position += movementDelta;
|
slider.Position += movementDelta;
|
||||||
slider.StartTime = result?.Time ?? slider.StartTime;
|
slider.StartTime = result?.Time ?? slider.StartTime;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user