Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
Fix bug with rectangle/square tool
Browse files Browse the repository at this point in the history
  • Loading branch information
vinsonchuong committed Oct 7, 2011
1 parent 78ada36 commit de37e40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/script.js
Expand Up @@ -933,11 +933,12 @@ function initCanvasController() {
);
break;
case 'rectangle':
width = x - startPoint.x;
previewRectangle(
{
x:startPoint.x,
y:startPoint.y,
width:x - startPoint.x,
width:width,
height:event.shiftKey ? width :
y - startPoint.y
},
Expand Down

0 comments on commit de37e40

Please sign in to comment.