Skip to content

Commit b485c88

Browse files
authored
Merge pull request #150 from tnrich/patch-1
Adding onScroll info
2 parents d182802 + b8093fa commit b485c88

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ more complicated with margins, so they are not supported. Use a transparent
187187
border or padding or an element with nested elements to achieve the desired
188188
spacing.
189189

190+
##### Why is there no onScroll event handler?
191+
192+
If you need an onScroll handler, just add the handler to the div wrapping your ReactList component:
193+
194+
```
195+
<div style={{height: 300, overflow: 'auto'}} onScroll={this.handleScroll}>
196+
<ReactList ... />
197+
</div>
198+
```
199+
190200
## Development
191201

192202
```bash

0 commit comments

Comments
 (0)