<sticky-header
offset-top="100"
bind:stickontopchange="onStickontopchange"
>距离顶部100px时吸住</sticky-header>
如代码所示,设置了offset-top后,预期应该是吸顶时触发事件,但是并没有,而是需要继续滚动100才会触发stickontopchange。
代码片段:https://developers.weixin.qq.com/s/UxpwSdm28u4Z
可以慢慢滚动观察反馈。
