Releases: souhe/reactScrollbar
Releases · souhe/reactScrollbar
v0.5.6
v0.5.5
v0.5.4
v0.5.2
Bug fixes
- Allow arrows keys for
textareaelement andcontenteditableelements - Issues #77 #107 #104 - Input range bug - Issue #42
- Warning "You are manually calling a React.PropTypes validation function for the
scrollAreaprop ont. This is deprecated and will not work in production with the next major version" - Issue #74 - use PropTypes from a standalone package instead on react - Issue #93
- upgraded react-motion version
v0.5.1
v0.5.0
New features
- Keyboard support
stopScrollPropagationprop - after set to true, mouse wheel event will not propagatefocussableTabIndexprop - after set to a number, scrollarea-content is rendered with a tabindex value set to the passed in
Bug fixes
- Fixed issue #58 - It's will auto scroll to top, when real height is less than container height.
v0.4.2
v0.4.1
v0.4.0
New features:
smooth scrolling
- new
smoothScrollingprop - when set to true, smooth scrolling for both scrollbars is enabled.
minimal scrollbar size
- new
minScrollSizeprop - using this prop it's possible to set minimal size in px for both scrollbars.
possibility to swap wheel axes
- new
swapWheelAxesprop - after set to true, mouse wheel event has swapped directions. So normal scrolling moves horizontal scrollbar and scrolling with SHIFT key moves vertical scrollbar. It could be useful for applications with horizontal layout.
Separeted no-css build (#30)
- If you prefer including scrollbar without css styles boundled inline to js file it's possible to import package without them.
var ScrollArea = require('react-scrollbar/no-css');support for universal apps (#28)
- it's only one requirement: you have to use
react-scrollbarin no-css version
Possibility to move scrollbar by clicking on scrollbar container
- After click, scrollbar moves to cursor position
Inertial scrolling for touch devices (#9)
Bug fixes:
v0.3.2
New prop onScroll
onScroll(value: Object) event which can notify the parent component when the container scrolls.
value: Object- informations about current positionvalue.leftPosition: Number- content left position (distance in pixels from the left side of container)value.topPosition: Number- content top position (distance in pixels from the top of container)value.containerHeight: Number- container heightvalue.containerWidth: Number- container widthvalue.realHeight: Number- real content heightvalue.realWidth: Number- real content width
New contentWindow, ownerDocumentprops to use scrollarea inside iframe.
contentWindow- default: windowownerDocument- default: document