mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-09 10:37:22 +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
|
||||
const arrowStartIsInside =
|
||||
this.state.selectedLinearElement.pointerDownState
|
||||
!this.state.newElement &&
|
||||
(this.state.selectedLinearElement.pointerDownState
|
||||
.arrowStartIsInside ||
|
||||
arrow.startBinding?.elementId === hoveredElement.id;
|
||||
arrow.startBinding?.elementId === hoveredElement.id);
|
||||
|
||||
// Change the global binding mode
|
||||
flushSync(() => {
|
||||
|
Reference in New Issue
Block a user