react-scroll-to-bottom
Advanced tools
Changelog
[3.0.0] - 2020-06-21
scrollToBottom
/scrollToEnd
/scrollToStart
/scrollToTop
now accept an option { behavior: 'auto' | 'smooth' }
smooth
), to keep existing behaviorauto
), to better align with HTML DOMElement.scrollIntoView
standard{ behavior: 'smooth' }
to keep existing behavior<meta name="react-scroll-to-bottom:version">
for diagnostic purpose, in PR #51useAnimatingToEnd
getter to indicate if it is animating towards to the end, in PR #49
useAnimating
getter only indicate if it is animating to any scroll positionsscrollTo
function to scroll to a specific scrollTop
value, this is similar to DOMElement.scrollIntoView()
, in PR #49
scrollTo(scrollTop: number, options: { behavior: 'auto' | 'smooth' })
{ behavior: 'smooth' }
for synthetic smooth scrollinguseObserveScrollTop
hook to observe scroll event, in PR #49
useState
and any code that would cause re-renderChangelog
[2.0.0] - 2020-05-07
*
: bump dependencies, in PR #47
@babel/cli@7.8.4
@babel/core@7.9.6
@babel/plugin-proposal-object-rest-spread@7.9.6
@babel/preset-env@7.9.6
@babel/preset-react@7.9.4
babel-eslint@10.1.0
babel-jest@26.0.1
eslint-plugin-prettier@3.1.3
eslint-plugin-react-hooks@4.0.0
eslint-plugin-react@7.19.0
eslint@6.8.0
jest@26.0.1
lerna@3.20.2
lorem-ipsum@2.0.3
prettier@2.0.5
react-interval@2.1.1
react-scripts@3.4.1
*
: bump dependencies, in PR #31
*
: bump dependencies, in PR #27