From f406dfd63b40d26d1e8a5cc7556ce247eeb82476 Mon Sep 17 00:00:00 2001 From: Gavin McDonald Date: Thu, 13 Sep 2018 21:03:45 -0400 Subject: [PATCH] stop setting canvas width/height on every draw, it clears the canvas --- src/sketch.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/sketch.js b/src/sketch.js index 7688958..e265201 100644 --- a/src/sketch.js +++ b/src/sketch.js @@ -63,9 +63,6 @@ export default class Sketch { } render (now) { - this.canvas.width = this.container.offsetWidth; - this.canvas.height = this.container.offsetHeight; - this.context.lastUTC = this.context.utc || null; this.context.utc = Date.now();