Skip to content

Commit

Permalink
fix(h5): 暂时不实现'在触发距离内滑动期间,本事件只会被触发一次'的功能,保证移动端体验
Browse files Browse the repository at this point in the history
  • Loading branch information
Littly committed Apr 28, 2019
1 parent d89a08d commit a6af8f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/taro-h5/src/api/privateApis/onReachBottom.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export const onReachBottom = (opt) => {
const onScroll = () => {
if (scroller.isReachBottom(distance)) {
canTrigger && callbackManager.trigger()
canTrigger = false
/**
* @todo 暂时不实现“在触发距离内滑动期间,本事件只会被触发一次”的功能。移动端环境scroll事件只会在停下后触发
* canTrigger = false
*/
} else {
canTrigger = true
}
Expand Down

0 comments on commit a6af8f5

Please sign in to comment.