Skip to content

Commit

Permalink
fix: rerender immediately when resizing and pressing shift
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Nov 14, 2024
1 parent 8486603 commit 7a7d971
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion packages/core/src/text/text_editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export class TextEditor {

inputDom.addEventListener('input', (_e) => {
const e = _e as InputEvent;
console.log(e.data);

const textGraphics = this.textGraphics;
if (!textGraphics) return;
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/tools/tool_select/tool_select_resize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class SelectResizeTool implements IBaseTool {
onActive() {
const handler = () => {
this.updateGraphics();
this.editor.render();
};
this.editor.hostEventManager.on('shiftToggle', handler);
this.editor.hostEventManager.on('altToggle', handler);
Expand Down

0 comments on commit 7a7d971

Please sign in to comment.