wechat-miniprogram / miniprogram-component-plus

MIT License
268 stars 79 forks source link

sticky在小米手机中不生效 #20

Open jianzhou520 opened 3 years ago

jianzhou520 commented 3 years ago

其他安卓手机和iOS机型表现正常,小米手机不生效

Wechat Version 7.0.19 MIUI 10.2.35 model MI 9 Android 9

Tidyzq commented 3 years ago

能否提供一个复现的代码片段?https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

cd-butterfly commented 3 years ago

@Tidyzq 我也遇到此问题 小程序官方组件展示 官方demo里就可以复现。

yourself911 commented 3 years ago

红米 k30pro Android 10 MIUI 12.0.9 微信 8.0.7 使用 小程序官方sticky组件demo 也是不吸顶
ios 没有问题

yourself911 commented 3 years ago

小程序的 intersectionObserver api 很神奇,在Android下,threshold: 1, 往监听的目标元素外层容器加个左右padding 就能触发回调函数了。具体效果看这里:https://developers.weixin.qq.com/s/687mLWmC7jrJ

xyzland commented 2 years ago

请问有解决吗?我这小米8也是不能吸顶

kingsley2036 commented 8 months ago

小程序的 intersectionObserver api 很神奇,在Android下,threshold: 1, 往监听的目标元素外层容器加个左右padding 就能触发回调函数了。具体效果看这里:https://developers.weixin.qq.com/s/687mLWmC7jrJ

这个有用