diff options
Diffstat (limited to 'rectangles.html')
| -rw-r--r-- | rectangles.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rectangles.html b/rectangles.html index 71f83c6..32790d7 100644 --- a/rectangles.html +++ b/rectangles.html @@ -131,11 +131,11 @@ canvas.addEventListener("mousemove", function(e){ document.addEventListener("mouseup", function(e){ if (creating) { if (mouse.height() != 0 && mouse.width() != 0) { - rects.push(mouse.normalize()) + rects.push(mouse.translate()) } } if (dragging) { - dragging.normalize() + dragging.translate() } mouse = new rect(e.pageX, e.pageY) creating = dragging = false @@ -258,7 +258,7 @@ function draw_mouse(){ } else { ctx.fillStyle = "rgba(255,255,0,0.5)" - mouse.clone().normalize().fill() + mouse.clone().translate().fill() } } } |
