Skip to content

Commit

Permalink
fix(editor): 画布大小变化,滚动条重置
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and jia000 committed Sep 15, 2022
1 parent 10d2b3c commit bee9f92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/utils/scroll-viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export class ScrollViewer extends EventEmitter {
this.setSize();
this.setScrollSize();
this.resizeObserver.observe(this.container);
this.resizeObserver.observe(this.target);
}

public destroy() {
Expand Down

0 comments on commit bee9f92

Please sign in to comment.