I upgraded from Chrome version 17 to Chrome: 18.0.1025.142 today.
I noticed that one of the web applications I'm working on has a weird blue layer that appears when it loads, and then disappears when you start scrolling.
I traced this to the following lines in my JS:
context.canvas.width = canWidth;
context.canvas.height = canHeight;
canWidth and canHeight are dynamically generated.
Commenting out these lines stops the blue rendering, however this is not a fix, since I need to use dynamically generated values to control the width and height of the canvas.
I also tried hard-coding context.canvas.width and context.canvas.height to 600, and this also caused a blue layer problem.
This is not a problem in previous versions of Chrome, and I have no problem with FireFox.
, ?
Edit:
, (nodeLeft nodeTop else ):
context.clearRect ( 0 , 0 ,canWidth, canHeight );
context.canvas.width = canWidth;
context.canvas.height = canHeight;
context.beginPath();
context.moveTo(x, y);
context.lineTo(nodeLeft, nodeTop);
context.strokeStyle = "#000000";
context.lineCap = "round";
context.stroke();