mirror of
https://github.com/ppy/osu
synced 2025-01-11 16:49:39 +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)
|
private void onShowSampleEditPopoverRequested(double time)
|
||||||
{
|
{
|
||||||
if (Precision.AlmostEquals(time, GetTime()))
|
if (!Precision.AlmostEquals(time, GetTime())) return;
|
||||||
this.ShowPopover();
|
|
||||||
|
editorClock?.SeekSmoothlyTo(GetTime());
|
||||||
|
this.ShowPopover();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnClick(ClickEvent e)
|
protected override bool OnClick(ClickEvent e)
|
||||||
@ -82,14 +84,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnMouseUp(MouseUpEvent e)
|
|
||||||
{
|
|
||||||
if (e.Button != MouseButton.Right) return;
|
|
||||||
|
|
||||||
editorClock?.SeekSmoothlyTo(GetTime());
|
|
||||||
this.ShowPopover();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateText()
|
private void updateText()
|
||||||
{
|
{
|
||||||
Label.Text = $"{abbreviateBank(GetBankValue(GetSamples()))} {GetVolumeValue(GetSamples())}";
|
Label.Text = $"{abbreviateBank(GetBankValue(GetSamples()))} {GetVolumeValue(GetSamples())}";
|
||||||
|
Loading…
Reference in New Issue
Block a user