From 664abf561a647dd06d5ed0db926bab03d92e2ae0 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Mon, 5 Oct 2020 10:35:25 -0400 Subject: [PATCH] change block deletion overlap threshold from .66 to .4 --- src/editor/ui/Palette.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/ui/Palette.js b/src/editor/ui/Palette.js index 6f0ec7a..23ca867 100644 --- a/src/editor/ui/Palette.js +++ b/src/editor/ui/Palette.js @@ -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)) {