1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 15:27:20 +08:00

Fix selecting control points without control not deselecting other selected points

This commit is contained in:
Bartłomiej Dach 2021-12-20 21:56:06 +01:00
parent bf8c87e9b7
commit 5ef4e23335
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -147,11 +147,14 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
switch (e.Button)
{
case MouseButton.Left:
if (!IsSelected.Value)
{
RequestSelection.Invoke(this, e);
keepSelection = true;
}
// if control is pressed, do not do anything as the user may be adding to current selection
// or dragging all currently selected control points.
// if it isn't and the user's intent is to deselect, deselection will happen on mouse up.
if (e.ControlPressed && IsSelected.Value)
return true;
RequestSelection.Invoke(this, e);
keepSelection = true;
return true;