1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 03:33:22 +08:00

Don't play sample if there is no item being actively dragged

This commit is contained in:
Jamie Taylor 2022-06-23 20:13:01 +09:00
parent 9c46592e0e
commit aaf619b35c
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -46,6 +46,9 @@ namespace osu.Game.Graphics.Containers
private void playSwapSample()
{
if (!DragActive.Value)
return;
if (Time.Current - sampleLastPlaybackTime <= 35)
return;