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

View File

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