Releases: rommguy/react-custom-scroll
Dev dependencies upgrade
ES7
Upgrade webpack and babel
Import the css
Create the css with webpack plugins
Refactor example code - JSX instead of React-templates, webpack 4, ES7
Double scroll solution (Chrome retina)
This is a major version, since it uses GPU rendering that might affect backwards compatibility
This version solves #35 , where Chrome on retina display had double scroll, by using translateZ css property
React 16 compatibility
v2.0.3 2.0.3
fix keepAtBottom
Fixes keepAtBottom bug, where the scroll would change if the content changed, without changing content size (for example collection of comments changes order)
Closed issue #30
v2.0.1
ES6 classes + React 16 compatibility
This version supports React 15.5.0 and above.
Warnings from usage of createClass and React.PropTypes were cleaned.
Backwards compatibility
This version adds a peer dependency of React prop-types package.
I wrapped the require statement with a try-catch block, so it shouldn't break if you don't have prop-types.
However, the AMD tries to load prop-types when loading customScroll, so it will break without it.
In addition, without importing prop-types package, in all uses, you will not get prop types warnings for customScroll.
v1.10.1
Add keepAtBottom prop
This props supports dynamic content.
If true, the scroll position will stay at the bottom of the content, when the content size changes.
This only applies if the scroll was already at the bottom when the change happened.
#19
Add scrollTo prop support
As requested in issue #21 , scrollTo gets a number and scrolls the content to that scroll pos
Currently there is no safety checks, and that position can be any value.
It will only affect the render in which the prop changed.
The position isn't frozen.
Flex & RTL
Add optional props for flex size and right to left documents.