Releases: souhe/reactScrollbar
Releases · souhe/reactScrollbar
v0.3.1
v0.3.0
-
New
context
methods:scrollTop()
-
It allows to scroll to the top ofScrollArea
component.scrollBottom()
-
It allows to scroll to the bottom ofScrollArea
component.scrollXTo(topPosition)
-
It moves vertical scrollbar totopPosition
.scrollLeft()
-
It allows to scroll to the left ofScrollArea
component.scrollRight()
-
It allows to scroll to the right ofScrollArea
component.scrollYTo(leftPosition)
-
It moves horizontal scrollbar toleftPosition
.
-
Bug fixes
- fixed browserify support
Inline styles props
New props for inline styles:
style
- Inline styles applied to the main scroll area component.contentStyle
- Inline styles applied to element with scroll area contenthorizontalContainerStyle
- Inline styles applied to horizontal scrollbar's containerhorizontalScrollbarStyle
- Inline styles applied to horizontal scrollbarverticalContainerStyle
- Inline styles applied to vertical scrollbar's containerverticalScrollbarStyle
- Inline styles applied to vertical scrollbar
Version 0.2
-
refresh()
methodTo each child could be injected an object
scrollArea
contains methodrefresh()
which could refresh react scrollbar state.
When using React 0.13 it's necessary to wrap<ScrollArea>
child into a function. This is a temporary workaround for a React 0.13 context issue, which is fixed in React 0.14. -
Touch support
Now React Scrollbar supports touch events.
-
React 0.14 support
-
No need to include
css
styles to project anymore.Styles are now boundled together with scripts.