1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Fix drag not updating until mouse is moved while scrolling timeline

This commit is contained in:
Dean Herbert 2020-01-22 16:33:23 +09:00
parent a8ec4907c4
commit 89d90fdfa0

View File

@ -18,6 +18,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
internal class TimelineHitObjectDisplay : BlueprintContainer
{
private DragEvent lastDragEvent;
public TimelineHitObjectDisplay(EditorBeatmap beatmap)
{
RelativeSizeAxes = Axes.Both;
@ -50,9 +52,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
protected override void Update()
{
if (IsDragged && lastDragEvent != null)
// trigger every frame so drags continue to update selection while playback is scrolling the timeline.
DragBox.UpdateDrag(lastDragEvent);
// trigger every frame so drags continue to update selection while playback is scrolling the timeline.
if (IsDragged)
OnDrag(lastDragEvent);
base.Update();
}