mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Reduce the maximum size of the binding gap (#2450)
This commit is contained in:
parent
4d71078f48
commit
c7b5cdb71e
2 changed files with 3 additions and 3 deletions
|
@ -133,7 +133,7 @@ export const maxBindingGap = (
|
|||
const shapeRatio = element.type === "diamond" ? 1 / Math.sqrt(2) : 1;
|
||||
const smallerDimension = shapeRatio * Math.min(elementWidth, elementHeight);
|
||||
// We make the bindable boundary bigger for bigger elements
|
||||
return Math.max(15, Math.min(0.25 * smallerDimension, 80));
|
||||
return Math.max(16, Math.min(0.25 * smallerDimension, 32));
|
||||
};
|
||||
|
||||
type HitTestArgs = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue