From 44eedfe2254add418356c46258616cb111416664 Mon Sep 17 00:00:00 2001 From: DD Date: Mon, 19 Mar 2018 12:47:59 -0400 Subject: [PATCH] Remove unnecessary changes --- src/helper/hover.js | 1 + src/helper/item.js | 9 ++++----- src/helper/tools/text-tool.js | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) 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;