mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
Remove unnecessary changes
This commit is contained in:
parent
b4294b8268
commit
44eedfe225
3 changed files with 5 additions and 6 deletions
|
@ -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)) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue