mirror of https://github.com/ppy/osu
Merge pull request #7808 from peppy/disable-interaction-progress-bar
Disallow seeking on osu!direct download progress bars
This commit is contained in:
commit
cb46d34dd7
|
@ -19,7 +19,7 @@ public class DownloadProgressBar : BeatmapDownloadTrackingComposite
|
|||
public DownloadProgressBar(BeatmapSetInfo beatmapSet)
|
||||
: base(beatmapSet)
|
||||
{
|
||||
AddInternal(progressBar = new ProgressBar
|
||||
AddInternal(progressBar = new InteractionDisabledProgressBar
|
||||
{
|
||||
Height = 0,
|
||||
Alpha = 0,
|
||||
|
@ -64,5 +64,11 @@ private void load(OsuColour colours)
|
|||
}
|
||||
}, true);
|
||||
}
|
||||
|
||||
private class InteractionDisabledProgressBar : ProgressBar
|
||||
{
|
||||
public override bool HandlePositionalInput => false;
|
||||
public override bool HandleNonPositionalInput => false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue