mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 08:12:53 +08:00
Don't play sample if there is no item being actively dragged
This commit is contained in:
parent
9c46592e0e
commit
aaf619b35c
@ -46,6 +46,9 @@ namespace osu.Game.Graphics.Containers
|
|||||||
|
|
||||||
private void playSwapSample()
|
private void playSwapSample()
|
||||||
{
|
{
|
||||||
|
if (!DragActive.Value)
|
||||||
|
return;
|
||||||
|
|
||||||
if (Time.Current - sampleLastPlaybackTime <= 35)
|
if (Time.Current - sampleLastPlaybackTime <= 35)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user