scroll-view的scrollTop不精确
现象:
scroll-view滚动回到顶部时候的scrollTop不为0
个人分析:
scroll-view滚动监听存在精度问题
求解问题:
有没有遇到过类似问题的,怎么才能精确获取实时的滚动高度?
-------------------------------------------------------------------------------------------------------------------------------------------
wxml结构:
<scroll-view bindscroll=“scroll” scroll-y=“true”>
<view>This is my content!</view>
…
</scroll-view>
wxss:
scroll-view{
height:100%;
}
4 回复