1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 10:50:20 +08:00

Merge pull request #34501 from peppy/reveal-background-only-left-button

Avoid reveal background triggering when more than left mouse button is involved
This commit is contained in:
Bartłomiej Dach
2025-08-04 12:13:19 +02:00
committed by GitHub
Unverified
+1 -1
View File
@@ -849,7 +849,7 @@ namespace osu.Game.Screens.SelectV2
// For simplicity, disable this functionality on mobile.
bool isTouchInput = e.CurrentState.Mouse.LastSource is ISourcedFromTouch;
if (e.Button == MouseButton.Left && !isTouchInput && mouseDownPriority)
if (e.PressedButtons.SequenceEqual([MouseButton.Left]) && !isTouchInput && mouseDownPriority)
{
revealingBackground = Scheduler.AddDelayed(() =>
{