mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Binding distance fix with elbow arrows
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
parent
f842a89fef
commit
10c5ec2c7b
1 changed files with 1 additions and 3 deletions
|
@ -33,7 +33,6 @@ import {
|
|||
getGlobalFixedPointForBindableElement,
|
||||
snapToMid,
|
||||
getHoveredElementForBinding,
|
||||
getDistanceForBinding,
|
||||
} from "./binding";
|
||||
import { distanceToBindableElement } from "./distance";
|
||||
import {
|
||||
|
@ -2225,8 +2224,7 @@ const getGlobalPoint = (
|
|||
if (isDragging) {
|
||||
if (
|
||||
element &&
|
||||
(getDistanceForBinding(initialPoint, element, zoom) ||
|
||||
isPointInShape(initialPoint, getElementShape(element, elementsMap)))
|
||||
isPointInShape(initialPoint, getElementShape(element, elementsMap))
|
||||
) {
|
||||
const snapPoint = bindPointToSnapToElementOutline(
|
||||
arrow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue