mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Merge pull request #333 from LLK/block-delete-percent
change block deletion overlap threshold from .66 to .4
This commit is contained in:
commit
b8ec36be3f
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ export default class Palette {
|
|||
(sc.flowCaret.next != null) || (sc.flowCaret.inside != null))) {
|
||||
return 'scripts';
|
||||
}
|
||||
if (box2.overlapElemBy(box, 0.66) && box2.hitRect({x: el.left / scale, y: el.top / scale})) {
|
||||
if (box2.overlapElemBy(box, 0.4) && box2.hitRect({x: el.left / scale, y: el.top / scale})) {
|
||||
return 'palette';
|
||||
}
|
||||
if (pt && box2.hitRect(pt)) {
|
||||
|
|
Loading…
Reference in a new issue