Skip to content

Commit

Permalink
Update draw_image.html
Browse files Browse the repository at this point in the history
Add (event) in two places, at line 210, 211. Because in some browsers there is a throw exception, in console.log().
  • Loading branch information
username1565 authored Nov 21, 2019
1 parent 6a4f273 commit e998484
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/draw_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ <h3>Extra</h3>

// 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
Expand Down Expand Up @@ -339,4 +339,4 @@ <h3>Extra</h3>
isMouseDown=false
store()
}
</script>
</script>

0 comments on commit e998484

Please sign in to comment.