page looks roughly like this:
<page>
<scroll-view>
......
<view class="fixedbar" hidden="{{fix}}"></view>
......
</scroll-view>
</page>
whether you bind the scroll
event of scroll-view
, or use the createIntersectionObserver
interface, whether you use wx:if
or hidden
, there is a situation: if the finger does not leave the screen and does not stop sliding, the fixedbar will not appear immediately, and the finger must stop sliding or leave the screen.
Why is this? How to avoid this problem? Thank you ~