mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Always process position as long as it's hittable
For example... If a hitobject is pressed but the result is a shake, this will stop processing hits.
This commit is contained in:
parent
e2867986c5
commit
1f13124b38
@ -272,9 +272,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
{
|
||||
case OsuAction.LeftButton:
|
||||
case OsuAction.RightButton:
|
||||
// Only update closest press position while the object hasn't been hit yet.
|
||||
if (HitAction == null)
|
||||
{
|
||||
if (ClosestPressPosition is Vector2 curClosest)
|
||||
{
|
||||
float oldDist = Vector2.DistanceSquared(curClosest, ScreenSpaceDrawQuad.Centre);
|
||||
@ -285,7 +282,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
}
|
||||
else
|
||||
ClosestPressPosition = e.ScreenSpaceMousePosition;
|
||||
}
|
||||
|
||||
if (IsHovered)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user