diff --git a/src/helper/hover.js b/src/helper/hover.js index d98ba9d7..ed4caf97 100644 --- a/src/helper/hover.js +++ b/src/helper/hover.js @@ -30,6 +30,7 @@ const getHoveredItem = function (event, hitOptions, subselect) { if (!item) { return null; } + if (isBoundsItem(item)) { return hoverBounds(item); } else if (!subselect && isGroupChild(item)) { diff --git a/src/helper/item.js b/src/helper/item.js index 736eb64e..51e8e5bf 100644 --- a/src/helper/item.js +++ b/src/helper/item.js @@ -33,16 +33,15 @@ const isGroupItem = function (item) { }; -const isPGTextItem = function (item) { - return getRootItem(item).data.isPGTextItem; -}; - - const isPointTextItem = function (item) { return item.className === 'PointText'; }; +const isPGTextItem = function (item) { + return getRootItem(item).data.isPGTextItem; +}; + const setPivot = function (item, point) { if (isBoundsItem(item)) { item.pivot = item.globalToLocal(point); diff --git a/src/helper/tools/text-tool.js b/src/helper/tools/text-tool.js index deb04984..811255c0 100644 --- a/src/helper/tools/text-tool.js +++ b/src/helper/tools/text-tool.js @@ -205,7 +205,6 @@ class TextTool extends paper.Tool { } } handleKeyDown (event) { - debugger; if (event.event.target instanceof HTMLInputElement) { // Ignore nudge if a text input field is focused return;