mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: freedraw non-solid bg hitbox not working (#7193)
This commit is contained in:
parent
104f64f1dc
commit
f794b0bb90
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue