Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucastakejame committed Feb 5, 2018
1 parent 56a358c commit 3b6f4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var InputHandle = (function (canvas, particles, paintcontext) {
obj.params.mousey = event.clientY - canvas.height/2;
}
if(event.button == 1){
paintcontext.clearRect(-width / 2, -height / 2, width, height);
paintcontext.clearRect(-canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
}
if(event.button == 2){
obj.params.paint = true;
Expand Down

0 comments on commit 3b6f4bc

Please sign in to comment.