Make hit-test tolerance dependent of view#matrix

This commit is contained in:
Jürg Lehni 2013-12-10 22:53:03 +01:00
parent 68bce5b062
commit 9501fd1924
3 changed files with 7 additions and 7 deletions
src/project

View file

@ -455,7 +455,7 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|| item.getLayer().getSelectedColor();
ctx.strokeStyle = ctx.fillStyle = color
? color.toCanvasStyle(ctx) : '#009dec';
var mx = item._globalMatrix.clone().preConcatenate(matrix);
var mx = matrix.clone().concatenate(item._globalMatrix);
if (item._drawSelected)
item._drawSelected(ctx, mx);
if (item._boundsSelected) {