diff options
author | bobzel <zzzman@gmail.com> | 2021-09-29 01:38:15 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-29 01:38:15 -0400 |
commit | aed57a2d6435007676409aeba562fc11d0c4a44d (patch) | |
tree | b14f348cdb1dd78c6d044c0d40ee767888eab2bb /src/client/views/DocumentDecorations.tsx | |
parent | faaa10bfeaf9c4a33a75884c3cf93eb3138464d1 (diff) |
a number of undo/redo fixes for ink (snapping to tangent, add points, dragging tangents). also tried to make storage of undo events more efficient when dragging ink controls (avoid saving hundreds of copies of the InkField)
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index bd61c9f60..bd9c3509b 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -202,7 +202,10 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number, P InkStrokeProperties.Instance?.rotateInk(2 * movement.X / angle * (Math.PI / 180)); return false; }, - () => this._rotateUndo?.end(), + () => { + this._rotateUndo?.end(); + UndoManager.FilterBatches(["data", "x", "y", "width", "height"]); + }, emptyFunction); this._prevY = e.clientY; this._inkCenterPts = SelectionManager.Views() |