Update Resizing.ts

faster-resizing
Steve Ruiz 2024-04-05 18:05:45 +01:00
rodzic b1cd06a29d
commit bdaa75c62d
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -118,7 +118,10 @@ export class Resizing extends StateNode {
private cancel() {
// Restore initial models
const shapes = Array.from(this.snapshot.shapeSnapshots.values()).map((s) => s.shape)
this.updateShapesInStore(shapes)
this.editor.bailToMark(this.markId)
if (this.info.onInteractionEnd) {
this.editor.setCurrentTool(this.info.onInteractionEnd, {})
} else {