Skip to content

Commit

Permalink
docs: Fix readme typo (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
yayvery authored Dec 30, 2020
1 parent 5bb93fc commit f9e4aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const {
- When `true`, this virtualizer will use `width` and `scrollLeft` instead of `height` and `scrollTop` to determine size and offset of virtualized items.
- `scrollToFn: Function(offset, defaultScrollToFn) => void 0`
- Optional
- This function, if passed, is responsible for implementing the scrollTo logic for the parentRef which is used when methods like `scrolllToOffset` and `scrollToIndex` are called.
- This function, if passed, is responsible for implementing the scrollTo logic for the parentRef which is used when methods like `scrollToOffset` and `scrollToIndex` are called.
- Eg. You can use this function to implement smooth scrolling by using the supplied offset and the `defaultScrollToFn` as seen in the sandbox's **Smooth Scroll** example.
- `useObserver: Function(parentRef) => ({ width: number; height: number })`
- Optional
Expand Down

0 comments on commit f9e4aac

Please sign in to comment.