mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 13:32:28 -05:00
Merge pull request #66 from fsih/selectionCaveats
Don't hit test against handles that aren't showing
This commit is contained in:
commit
92b5657084
1 changed files with 8 additions and 0 deletions
|
@ -96,6 +96,10 @@ class ReshapeTool extends paper.Tool {
|
|||
if (!item.segment.selected) {
|
||||
return false;
|
||||
}
|
||||
// If the entire shape is selected, handles are hidden
|
||||
if (item.item.fullySelected) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -107,6 +111,10 @@ class ReshapeTool extends paper.Tool {
|
|||
if (!item.segment.selected) {
|
||||
return false;
|
||||
}
|
||||
// If the entire shape is selected, handles are hidden
|
||||
if (item.item.fullySelected) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue