File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Vue.component(VScroller.name, VScroller)
43
43
2 . preload-bottom:触发 bottom 的距离(px),默认` 50 `
44
44
3 . throttle: 事件派发的频率,默认` 0 ` 不限流,如果设置为 < 0,则不派发事件
45
45
4 . tag:指定容器的元素,默认是` div `
46
- 5 . event-step:事件触发的步长(px),大于这个步长才会 emit` top ` , ` bottom ` , * 第一次* 的` refresh ` 事件
46
+ 5 . event-step:事件触发的步长(px),大于这个步长才会 emit` top ` , * 第一次* 的` refresh ` 事件
47
47
48
48
## Events
49
49
1 . ` void ` @scroll-down :正在向下滚动
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " h5-vue-scroller" ,
3
- "version" : " 0.1.21 " ,
3
+ "version" : " 0.1.22 " ,
4
4
"main" : " dist/h5-vue-scroller.umd.min.js" ,
5
5
"files" : [
6
6
" dist"
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export default {
45
45
events [ '&scroll' ] = this . handleScroll
46
46
}
47
47
events [ '&touchstart' ] = this . handleStart
48
- events [ 'touchmove' ] = this . handleMove
48
+ events [ '& touchmove' ] = this . handleMove
49
49
events [ '&touchend' ] = this . handleEnd
50
50
}
51
51
return h (
@@ -99,10 +99,7 @@ export default {
99
99
if ( scrollTop > 0 ) {
100
100
this . $emit ( 'scroll-down' )
101
101
}
102
- if (
103
- $el . scrollHeight - $el . clientHeight - scrollTop <= preloadBottom &&
104
- delta + eventStep <= 0
105
- ) {
102
+ if ( $el . scrollHeight - $el . clientHeight - scrollTop <= preloadBottom ) {
106
103
this . $emit ( 'bottom' )
107
104
}
108
105
}
You can’t perform that action at this time.
0 commit comments