diff --git a/src/index.js b/src/index.js index 6dbd3221..d4abc7ef 100644 --- a/src/index.js +++ b/src/index.js @@ -326,7 +326,7 @@ context.translate(0.5, 0.5); function drawScene() { ReactDOM.render(, rootElement); - context.clearRect(0, 0, canvas.width, canvas.height); + context.clearRect(-0.5, -0.5, canvas.width, canvas.height); elements.forEach(element => { element.draw(rc, context);