summaryrefslogtreecommitdiff
path: root/assets/javascripts/rectangles/clipper.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascripts/rectangles/clipper.js')
-rw-r--r--assets/javascripts/rectangles/clipper.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/javascripts/rectangles/clipper.js b/assets/javascripts/rectangles/clipper.js
index 5bbc155..bd0c521 100644
--- a/assets/javascripts/rectangles/clipper.js
+++ b/assets/javascripts/rectangles/clipper.js
@@ -86,11 +86,11 @@ var clipper = new function(){
document.addEventListener("mouseup", function(e){
if (clipper.creating) {
if (mouse.height() != 0 && mouse.width() != 0) {
- rects.push(mouse.normalize())
+ rects.push(mouse.translate())
}
}
if (clipper.dragging) {
- clipper.dragging.normalize()
+ clipper.dragging.translate()
}
mouse = new rect(e.pageX, e.pageY)
clipper.creating = clipper.dragging = false