1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-02 03:25:53 +01:00

fix: freedraw non-solid bg hitbox not working (#7193)

This commit is contained in:
David Luzar 2023-10-25 17:21:01 +02:00 committed by GitHub
parent 104f64f1dc
commit f794b0bb90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -494,7 +494,9 @@ const hitTestFreeDrawElement = (
// for filled freedraw shapes, support
// selecting from inside
if (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;