Merge branch 'dev' into next

This commit is contained in:
chenjiahan
2022-06-25 12:48:53 +08:00
4 changed files with 47 additions and 29 deletions

View File

@@ -3,7 +3,7 @@ import { inBrowser } from '../utils';
type ScrollElement = HTMLElement | Window;
const overflowScrollReg = /scroll|auto/i;
const overflowScrollReg = /scroll|auto|overlay/i;
const defaultRoot = inBrowser ? window : undefined;
function isElement(node: Element) {