Skip to content

usePageScroll ​

控制与监听页面滚动。

typescript
import { usePageScroll } from '@uni-helper/uni-use'

const { scrollTop } = usePageScroll({
  onPageScroll: true,
})

Released under the MIT License.