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:
parent
1117fd56a1
commit
b5b4f915a9
@ -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())}";
|
||||
|
Loading…
Reference in New Issue
Block a user