mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Merge pull request #1535 from sasensi/Fix_selected_position_is_wrongly_placed_when_item_is_in_a_group_with_matrix_not_applied
Fix: selected position is wrongly placed when item is in a group with matrix not applied
This commit is contained in:
commit
f032dcbf06
1 changed files with 1 additions and 1 deletions
|
@ -4413,7 +4413,7 @@ 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 = this.getPosition(true),
|
var point = mx._transformPoint(this.getPosition(true)),
|
||||||
x = point.x,
|
x = point.x,
|
||||||
y = point.y;
|
y = point.y;
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
|
|
Loading…
Reference in a new issue