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

Automatic seek to sample point on right-click

This commit is contained in:
OliBomby 2024-08-27 19:40:33 +02:00
parent 1117fd56a1
commit b5b4f915a9

View File

@ -78,11 +78,18 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
protected override bool OnClick(ClickEvent e)
{
editorClock?.SeekSmoothlyTo(GetTime());
this.ShowPopover();
return true;
}
protected override void OnMouseUp(MouseUpEvent e)
{
if (e.Button != MouseButton.Right) return;
editorClock?.SeekSmoothlyTo(GetTime());
this.ShowPopover();
}
private void updateText()
{
Label.Text = $"{abbreviateBank(GetBankValue(GetSamples()))} {GetVolumeValue(GetSamples())}";