用于追踪目标元素滚动状态的 React Hook。
{
"isScrolling": false,
"position": {
"x": 0,
"y": 0
},
"directions": {
"left": false,
"right": false,
"top": false,
"bottom": false
},
"arrivedState": {
"left": true,
"right": false,
"top": true,
"bottom": false
}
}请查看 API。
点击下方链接跳转 GitHub 查看源代码。
ElementTarget 是一个联合类型,代表可以被定位的各种元素。
更多详情,请参见 ElementTarget 或 ElementTarget 类型。
Returns contain Pausable instance that can be paused, resumed.
See Pausable for more details.