Skip to content

Commit

Permalink
Fix comparison.
Browse files Browse the repository at this point in the history
Port of 747f33f (AvaloniaUI#8146) to stable branch.
  • Loading branch information
grokys committed May 18, 2022
1 parent 1c82eb4 commit 6f22bd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public object Convert(IList<object> values, Type targetType, object parameter, C

if (visibility == ScrollBarVisibility.Auto)
{
if (extent == viewport)
if (MathUtilities.AreClose(extent, viewport))
{
return false;
}
Expand Down

0 comments on commit 6f22bd0

Please sign in to comment.