From 348886365a82cc8f4a1594877b4fb69ed5fcc8a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 15 Oct 2018 10:12:15 +0200 Subject: [PATCH] Revert "Improve use of global matrix in selected position" This reverts commit 91d3499191a312cd950651c7805b9290d9ab9ca6. --- src/item/Item.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/item/Item.js b/src/item/Item.js index 59fdedd3..b03f44d9 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -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();