From 58cebab9a716702e61a91c612a1662fd9a095ebb Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 21 Jun 2016 13:07:34 +0200 Subject: [PATCH] Don't round ScrollViewer values. Not sure why this was being done, but it's almost certainly wrong. --- src/Avalonia.Controls/ScrollViewer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/ScrollViewer.cs b/src/Avalonia.Controls/ScrollViewer.cs index e9d1e56b3a..c52c1ad505 100644 --- a/src/Avalonia.Controls/ScrollViewer.cs +++ b/src/Avalonia.Controls/ScrollViewer.cs @@ -370,7 +370,7 @@ namespace Avalonia.Controls private static double Max(double x, double y) { var result = Math.Max(x, y); - return double.IsNaN(result) ? 0 : Math.Round(result); + return double.IsNaN(result) ? 0 : result; } private static Vector ValidateOffset(AvaloniaObject o, Vector value)