Skip to content

Commit b8093fa

Browse files
authored
Adding onScroll info
1 parent d182802 commit b8093fa

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)