Virtual whiteboard for sketching hand-drawn like diagrams
fix: freedraw non-solid bg hitbox not working (#7193)
David Luzarf794b0bb90d3
diff --git a/src/element/collision.ts b/src/element/collision.tsindex 103d3fd991..b1fdea606b 100644--- a/src/element/collision.ts+++ b/src/element/collision.ts@@ -494,7 +494,9 @@ const hitTestFreeDrawElement = (// for filled freedraw shapes, support// selecting from insideif (shape && shape.sets.length) {- return hitTestCurveInside(shape, x, y, "round");+ return element.fillStyle === "solid"+ ? hitTestCurveInside(shape, x, y, "round")+ : hitTestRoughShape(shape, x, y, threshold);}return false;