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,
|
getGlobalFixedPointForBindableElement,
|
||||||
snapToMid,
|
snapToMid,
|
||||||
getHoveredElementForBinding,
|
getHoveredElementForBinding,
|
||||||
getDistanceForBinding,
|
|
||||||
} from "./binding";
|
} from "./binding";
|
||||||
import { distanceToBindableElement } from "./distance";
|
import { distanceToBindableElement } from "./distance";
|
||||||
import {
|
import {
|
||||||
|
@ -2225,8 +2224,7 @@ const getGlobalPoint = (
|
||||||
if (isDragging) {
|
if (isDragging) {
|
||||||
if (
|
if (
|
||||||
element &&
|
element &&
|
||||||
(getDistanceForBinding(initialPoint, element, zoom) ||
|
isPointInShape(initialPoint, getElementShape(element, elementsMap))
|
||||||
isPointInShape(initialPoint, getElementShape(element, elementsMap)))
|
|
||||||
) {
|
) {
|
||||||
const snapPoint = bindPointToSnapToElementOutline(
|
const snapPoint = bindPointToSnapToElementOutline(
|
||||||
arrow,
|
arrow,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue