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:
@@ -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(() =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user