Skip to content

Commit

Permalink
Draw controls only for active target (#2903)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Apr 25, 2016
1 parent b95b4d2 commit 218ad28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
ctx.transform.apply(ctx, target.group.calcTransformMatrix());
}
target.render(ctx);
target._renderControls(ctx);
target.active && target._renderControls(ctx);

target.hasBorders = hasBorders;
target.transparentCorners = transparentCorners;
Expand Down

0 comments on commit 218ad28

Please sign in to comment.