mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-14 15:08:53 -04:00
Make hit-test tolerance dependent of view#matrix
This commit is contained in:
parent
68bce5b062
commit
9501fd1924
3 changed files with 7 additions and 7 deletions
src/project
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue