diff --git a/packages/vant-use/src/useScrollParent/index.ts b/packages/vant-use/src/useScrollParent/index.ts index 7974d4060..e8d4b1c29 100644 --- a/packages/vant-use/src/useScrollParent/index.ts +++ b/packages/vant-use/src/useScrollParent/index.ts @@ -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) {