I have been lately working working with html5 canvas . I was following this post for 2d camera movement .
When the camera is position is updated , the canvas context is cleared and drawn again . But when i clear the canvas ( while moving ) there is white grid flickering . If you try the above link and moved you will see the same white flickering again and specific distance