From e9984842cd69b5636f0d699cab5a70084950fc25 Mon Sep 17 00:00:00 2001 From: username1565 <39200328+username1565@users.noreply.github.com> Date: Thu, 21 Nov 2019 21:33:41 +0200 Subject: [PATCH] Update draw_image.html Add (event) in two places, at line 210, 211. Because in some browsers there is a throw exception, in console.log(). --- pages/draw_image.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/draw_image.html b/pages/draw_image.html index 20844a28..f724d110 100644 --- a/pages/draw_image.html +++ b/pages/draw_image.html @@ -207,8 +207,8 @@

Extra

// DRAWING EVENT HANDLERS - canvas.addEventListener('mousedown', function() {mousedown(canvas, event);}); - canvas.addEventListener('mousemove',function() {mousemove(canvas, event);}); + canvas.addEventListener('mousedown', function(event) {mousedown(canvas, event);}); + canvas.addEventListener('mousemove',function(event) {mousemove(canvas, event);}); canvas.addEventListener('mouseup',mouseup); // CREATE CANVAS @@ -339,4 +339,4 @@

Extra

isMouseDown=false store() } - \ No newline at end of file +