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

Update osu.Game/Graphics/Containers/SectionsContainer.cs

Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Fukashi13 2020-05-15 00:06:58 +02:00 committed by GitHub
parent e390d70b70
commit 097fcfd9ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ namespace osu.Game.Graphics.Containers
{
float diff = scrollContainer.GetChildPosInContent(section) - currentScroll - scrollOffset;
if ((minDiff < diff) & (diff < 0))
if (minDiff < diff && diff < 0)
{
minDiff = diff;
bestMatch = section;