mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix collision check for rectangles and rendering of binding area (#2221)
This commit is contained in:
parent
3835fa60e4
commit
8a10f2a0b8
2 changed files with 5 additions and 6 deletions
|
@ -679,7 +679,7 @@ const renderBindingHighlightForBindableElement = (
|
|||
const strokeOffset = 4;
|
||||
context.strokeStyle = "rgba(0,0,0,.05)";
|
||||
context.lineWidth = threshold - strokeOffset;
|
||||
const padding = strokeOffset + threshold / 2;
|
||||
const padding = strokeOffset / 2 + threshold / 2;
|
||||
|
||||
switch (element.type) {
|
||||
case "rectangle":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue