@social-mail/social-mail-client 1.8.331 → 1.8.332

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.8.331",
3
+ "version": "1.8.332",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -580,6 +580,7 @@ export default class HtmlPageEditor extends AtomControl {
580
580
  @Action({ onEvent: "undo"})
581
581
  undo() {
582
582
  this.undoRedo?.undo();
583
+ this.selection.updateRect();
583
584
  // if (!this.undoList.length) {
584
585
  // return;
585
586
  // }
@@ -594,6 +595,7 @@ export default class HtmlPageEditor extends AtomControl {
594
595
  @Action({ onEvent: "redo"})
595
596
  redo() {
596
597
  this.undoRedo?.redo();
598
+ this.selection.updateRect();
597
599
  // if (!this.redoList.length) {
598
600
  // return;
599
601
  // }
@@ -117,7 +117,6 @@ const setCapture = (editor: HtmlPageEditor, element: HTMLElement, e: PointerEven
117
117
  element.removeEventListener("pointermove", captureMove);
118
118
  element.removeEventListener("pointerup", release);
119
119
  captureMove(e1);
120
- editor.commit();
121
120
  d.resume();
122
121
 
123
122
  // push records...
@@ -149,6 +148,13 @@ const setCapture = (editor: HtmlPageEditor, element: HTMLElement, e: PointerEven
149
148
  }
150
149
 
151
150
  undoRedo.observe(records);
151
+ editor.commit();
152
+
153
+ setTimeout(() => {
154
+ selection.updateRect();
155
+ hover.updateRect();
156
+ }, 1);
157
+
152
158
  };
153
159
  element.addEventListener("pointerup", release);
154
160
  };