mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-15 10:15:03 +01:00
fix: multiple line editor bugs (#9760)
Co-authored-by: Mark Tolmacs <mark@lazycat.hu>
This commit is contained in:
@@ -1040,10 +1040,12 @@ export class LinearElementEditor {
|
||||
if (lastPoint === lastUncommittedPoint) {
|
||||
LinearElementEditor.deletePoints(element, app, [points.length - 1]);
|
||||
}
|
||||
return {
|
||||
...appState.editingLinearElement,
|
||||
lastUncommittedPoint: null,
|
||||
};
|
||||
return appState.editingLinearElement.lastUncommittedPoint
|
||||
? {
|
||||
...appState.editingLinearElement,
|
||||
lastUncommittedPoint: null,
|
||||
}
|
||||
: appState.editingLinearElement;
|
||||
}
|
||||
|
||||
let newPoint: LocalPoint;
|
||||
|
||||
Reference in New Issue
Block a user