Skip to content

Commit

Permalink
fix(stage): 页面默认滚动容器设置为documentElement
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and jia000 committed Mar 29, 2022
1 parent 6becbda commit 4560562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stage/src/StageMask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class StageMask extends Rule {
if (!page) return;

this.page = page;
this.pageScrollParent = getScrollParent(page);
this.pageScrollParent = getScrollParent(page) || this.core.renderer.contentWindow?.document.documentElement || null;
this.pageResizeObserver?.disconnect();

if (typeof ResizeObserver !== 'undefined') {
Expand Down

0 comments on commit 4560562

Please sign in to comment.