diff --git a/src/Avalonia.Controls/LayoutTransformControl.cs b/src/Avalonia.Controls/LayoutTransformControl.cs index efd2cc395c..6cd2ee14bb 100644 --- a/src/Avalonia.Controls/LayoutTransformControl.cs +++ b/src/Avalonia.Controls/LayoutTransformControl.cs @@ -192,6 +192,14 @@ namespace Avalonia.Controls ApplyLayoutTransform(); } + /* + * About AcceptableDelta and DecimalsAfterRound - Original comment from the Silverlight code explains: + * // Note: AcceptableDelta and DecimalsAfterRound work around double arithmetic rounding issues on Silverlight. + * + * The DecimalsAfterRound property here was increased from the original 4 to 8 because of issues when zooming in + * and out at the end of very large objects. + */ + /// /// Acceptable difference between two doubles. /// @@ -200,7 +208,7 @@ namespace Avalonia.Controls /// /// Number of decimals to round the Matrix to. /// - private const int DecimalsAfterRound = 4; + private const int DecimalsAfterRound = 8; /// /// Actual DesiredSize of Child element (the value it returned from its MeasureOverride method).