mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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)
|
if (itemSelected)
|
||||||
this._drawSelected(ctx, mx, selectionItems);
|
this._drawSelected(ctx, mx, selectionItems);
|
||||||
if (positionSelected) {
|
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,
|
x = point.x,
|
||||||
y = point.y;
|
y = point.y;
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
|
|
Loading…
Reference in a new issue