Skip to content

Commit c832e2d

Browse files
committed
fix item centering at the end of the map list
1 parent 7d92d30 commit c832e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluXis/Screens/Select/List/MapList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void ScrollToItem(IListItem item, bool smooth = true)
145145

146146
if (center < DisplayableContent / 2)
147147
ScrollTo(0, smooth);
148-
else if (center > ScrollableExtent - DisplayableContent / 2)
148+
else if (center > ScrollableExtent + DisplayableContent / 2)
149149
ScrollToEnd(smooth);
150150
else
151151
ScrollTo(center - DisplayableContent / 2, smooth);

0 commit comments

Comments
 (0)