mirror of
https://github.com/ppy/osu
synced 2024-12-23 15:22:37 +00:00
dont seek on right-click, only on keyboard request
This commit is contained in:
parent
cadbb0f27a
commit
8fe7ab131c
@ -72,8 +72,10 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
|
||||
private void onShowSampleEditPopoverRequested(double time)
|
||||
{
|
||||
if (Precision.AlmostEquals(time, GetTime()))
|
||||
this.ShowPopover();
|
||||
if (!Precision.AlmostEquals(time, GetTime())) return;
|
||||
|
||||
editorClock?.SeekSmoothlyTo(GetTime());
|
||||
this.ShowPopover();
|
||||
}
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
@ -82,14 +84,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
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