Index: Source/devtools/front_end/elements/BezierUI.js |
diff --git a/Source/devtools/front_end/elements/BezierUI.js b/Source/devtools/front_end/elements/BezierUI.js |
index 8eda79a9984bb7d28b84b4d08fe9a05ffc13edeb..2a9b716fd317eb9e730c768dfb4878a302543c40 100644 |
--- a/Source/devtools/front_end/elements/BezierUI.js |
+++ b/Source/devtools/front_end/elements/BezierUI.js |
@@ -117,9 +117,9 @@ WebInspector.BezierUI.drawVelocityChart = function(bezier, path, width) |
var slope = (current.y - prev.y) / (current.x - prev.x); |
var weightedX = prev.x * (1 - t) + current.x * t; |
slope = Math.tanh(slope / 1.5); // Normalise slope |
- pathBuilder = pathBuilder.concat(["L", weightedX * width, height - slope * height ]); |
+ pathBuilder = pathBuilder.concat(["L", (weightedX * width).toFixed(2), (height - slope * height).toFixed(2) ]); |
prev = current; |
} |
- pathBuilder = pathBuilder.concat(["L", width, height, "Z"]); |
+ pathBuilder = pathBuilder.concat(["L", width.toFixed(2), height, "Z"]); |
path.setAttribute("d", pathBuilder.join(" ")); |
} |