Skip to content

Commit 0bca8b0

Browse files
authored
chore: set the nativeMode parameter (#4139)
1 parent 39702fb commit 0bca8b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/common/wechat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const getObserver = (context, selector: string) => {
22
return new Promise<WechatMiniprogram.IntersectionObserverObserveCallbackResult>((resolve) => {
33
context
4-
.createIntersectionObserver(context)
4+
.createIntersectionObserver({ nativeMode: true })
55
.relativeToViewport()
66
.observe(selector, (res) => {
77
resolve(res);

0 commit comments

Comments
 (0)