Browse Source

Don't round ScrollViewer values.

Not sure why this was being done, but it's almost certainly wrong.
pull/567/merge
Steven Kirk 10 years ago
parent
commit
58cebab9a7
  1. 2
      src/Avalonia.Controls/ScrollViewer.cs

2
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)

Loading…
Cancel
Save