1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-10 01:33:39 +08:00

dont seek on right-click, only on keyboard request

This commit is contained in:
OliBomby
2024-08-29 19:34:14 +02:00
Unverified
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())}";