Merge pull request #333 from LLK/block-delete-percent

change block deletion overlap threshold from .66 to .4
This commit is contained in:
chrisgarrity 2020-10-05 11:24:57 -04:00 committed by GitHub
commit b8ec36be3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {