mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Revert "Improve use of global matrix in selected position"
This reverts commit 91d3499191
.
This commit is contained in:
parent
91d3499191
commit
348886365a
1 changed files with 5 additions and 1 deletions
|
@ -4472,7 +4472,11 @@ new function() { // Injection scope for hit-test functions shared with project
|
|||
if (itemSelected)
|
||||
this._drawSelected(ctx, mx, selectionItems);
|
||||
if (positionSelected) {
|
||||
var point = mx._transformPoint(this.getPosition(true)),
|
||||
// Convert position from the parent's coordinates system to the
|
||||
// global one:
|
||||
var pos = this.getPosition(true),
|
||||
parent = this._parent,
|
||||
point = parent ? parent.localToGlobal(pos) : pos,
|
||||
x = point.x,
|
||||
y = point.y;
|
||||
ctx.beginPath();
|
||||
|
|
Loading…
Reference in a new issue