mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-10 11:00:41 +02:00
fix: New arrow never binds inside
Signed-off-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
@@ -982,9 +982,10 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
|
|
||||||
// Once the start is set to inside binding, it remains so
|
// Once the start is set to inside binding, it remains so
|
||||||
const arrowStartIsInside =
|
const arrowStartIsInside =
|
||||||
this.state.selectedLinearElement.pointerDownState
|
!this.state.newElement &&
|
||||||
|
(this.state.selectedLinearElement.pointerDownState
|
||||||
.arrowStartIsInside ||
|
.arrowStartIsInside ||
|
||||||
arrow.startBinding?.elementId === hoveredElement.id;
|
arrow.startBinding?.elementId === hoveredElement.id);
|
||||||
|
|
||||||
// Change the global binding mode
|
// Change the global binding mode
|
||||||
flushSync(() => {
|
flushSync(() => {
|
||||||
|
Reference in New Issue
Block a user