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) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (isBoundsItem(item)) {
|
||||
return hoverBounds(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) {
|
||||
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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue