File tree 1 file changed +17
-20
lines changed
1 file changed +17
-20
lines changed Original file line number Diff line number Diff line change @@ -39,32 +39,29 @@ class App extends React.Component {
39
39
40
40
render () {
41
41
return (
42
- < div>
43
- ...
44
- < ReactScrollDetector
45
- debounceTime= {500 }
46
- accuracy= {90 }
47
- onScrollBottom= {this .handleScrollBottom }
48
- onScrollTop= {this .handleScrollTop }
49
- >
50
- < div style= {{ minHeight: ' 500px' , maxHeight: ' 500px' , overflow: ' auto' }}>
51
- ...
52
- < / div>
53
- < / ReactScrollDetector>
54
- < / div>
55
- );
42
+ < ReactScrollDetector
43
+ debounceTime= {500 }
44
+ accuracy= {90 }
45
+ onScrollBottom= {this .handleScrollBottom }
46
+ onScrollTop= {this .handleScrollTop }
47
+ >
48
+ < div style= {{ minHeight: ' 500px' , maxHeight: ' 500px' , overflow: ' auto' }}>
49
+ ...
50
+ < / div>
51
+ < / ReactScrollDetector>
52
+ )
56
53
}
57
54
}
58
55
```
59
56
60
57
## API
61
58
62
- | Prop | Type | Description | Default |
63
- | --- | --- | --- | --- |
64
- | onScrollBottom | Function | Triggers when scroll reaches bottom | () => {} |
65
- | onScrollTop | Function | Triggers when scroll reaches top | () => {} |
66
- | accuracy | Number | Accuracy of detection | 90 |
67
- | debounceTime | Number | D etection debounce time in milli seconds | 500 |
59
+ | Prop | Type | Description | Default |
60
+ | --- | --- | --- | --- |
61
+ | onScrollBottom | Function | Triggers when scroll reaches bottom | (top ) => {} |
62
+ | onScrollTop | Function | Triggers when scroll reaches top | (top ) => {} |
63
+ | accuracy | Number | Accuracy of detection | 90 |
64
+ | debounceTime | Number | D etection debounce time in milli seconds | 500 |
68
65
69
66
70
67
## License
You can’t perform that action at this time.
0 commit comments