Remove unnecessary changes

This commit is contained in:
DD 2018-03-19 12:47:59 -04:00
parent b4294b8268
commit 44eedfe225
3 changed files with 5 additions and 6 deletions

View file

@ -30,6 +30,7 @@ const getHoveredItem = function (event, hitOptions, subselect) {
if (!item) { if (!item) {
return null; return null;
} }
if (isBoundsItem(item)) { if (isBoundsItem(item)) {
return hoverBounds(item); return hoverBounds(item);
} else if (!subselect && isGroupChild(item)) { } else if (!subselect && isGroupChild(item)) {

View file

@ -33,16 +33,15 @@ const isGroupItem = function (item) {
}; };
const isPGTextItem = function (item) {
return getRootItem(item).data.isPGTextItem;
};
const isPointTextItem = function (item) { const isPointTextItem = function (item) {
return item.className === 'PointText'; return item.className === 'PointText';
}; };
const isPGTextItem = function (item) {
return getRootItem(item).data.isPGTextItem;
};
const setPivot = function (item, point) { const setPivot = function (item, point) {
if (isBoundsItem(item)) { if (isBoundsItem(item)) {
item.pivot = item.globalToLocal(point); item.pivot = item.globalToLocal(point);

View file

@ -205,7 +205,6 @@ class TextTool extends paper.Tool {
} }
} }
handleKeyDown (event) { handleKeyDown (event) {
debugger;
if (event.event.target instanceof HTMLInputElement) { if (event.event.target instanceof HTMLInputElement) {
// Ignore nudge if a text input field is focused // Ignore nudge if a text input field is focused
return; return;