1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Fix range selection crashing after non-mouse selection

This commit is contained in:
Bartłomiej Dach 2021-09-27 20:54:01 +02:00
parent 1a1fc00b44
commit ca6cbca04a
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -80,7 +80,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
internal override bool MouseDownSelectionRequested(SelectionBlueprint<HitObject> blueprint, MouseButtonEvent e)
{
if (e.ShiftPressed && e.Button == MouseButton.Left && SelectedItems.Any())
if (e.ShiftPressed && e.Button == MouseButton.Left && pivot != null)
{
handleRangeSelection(blueprint, e.ControlPressed);
return true;