createIntersectionObserver 中 intersectionRatio的取值?
发布于 6 年前 作者 afang 10670 次浏览 来自 官方Issues

复现代码:

https://developers.weixin.qq.com/s/jbkEW7ma7MgJ

当小球进入scroll-view中,intersectionRatio的值并没有打印。intersectionRatio的值只在<view class=“ball”>刚与scroll-view交叉时和结束交叉时显示打印。

疑问:intersectionRatio的如何触发的?是实时触发的吗(就像scroll-view中的scroll事件)?

回到顶部