Skip to content

Commit

Permalink
Fix #15955 (#16005)
Browse files Browse the repository at this point in the history
  • Loading branch information
nil4 committed Jun 14, 2024
1 parent e8c3bf5 commit 13bdcbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/VirtualizingStackPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ protected override void OnItemsControlChanged(ItemsControl? oldValue)
var fromControl = from as Control;

if (count == 0 ||
fromControl is null && direction is not NavigationDirection.First or NavigationDirection.Last)
(fromControl is null && direction is not NavigationDirection.First and not NavigationDirection.Last))
return null;

var horiz = Orientation == Orientation.Horizontal;
Expand Down

0 comments on commit 13bdcbf

Please sign in to comment.