mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
More removal of "drag"
This commit is contained in:
@ -46,9 +46,9 @@ namespace osu.Game.Rulesets.Edit
|
||||
public readonly DrawableHitObject HitObject;
|
||||
|
||||
/// <summary>
|
||||
/// The screen-space position of <see cref="HitObject"/> when a drag was started.
|
||||
/// The screen-space position of <see cref="HitObject"/> prior to handling a movement event.
|
||||
/// </summary>
|
||||
public Vector2 ScreenSpaceDragStartPosition { get; private set; }
|
||||
internal Vector2 ScreenSpaceMovementStartPosition { get; private set; }
|
||||
|
||||
protected override bool ShouldBeAlive => (HitObject.IsAlive && HitObject.IsPresent) || State == SelectionState.Selected;
|
||||
public override bool HandlePositionalInput => ShouldBeAlive;
|
||||
@ -138,7 +138,7 @@ namespace osu.Game.Rulesets.Edit
|
||||
|
||||
protected override bool OnDragStart(DragStartEvent e)
|
||||
{
|
||||
ScreenSpaceDragStartPosition = HitObject.ToScreenSpace(HitObject.OriginPosition);
|
||||
ScreenSpaceMovementStartPosition = HitObject.ToScreenSpace(HitObject.OriginPosition);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user