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:
parent
a8ec4907c4
commit
89d90fdfa0
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user