Releases: compulim/react-scroll-to-bottom
Releases · compulim/react-scroll-to-bottom
[1.2.0] - 2018-10-28
Added
AutoHideFollowButton
: will now hide when it start animating scroll positionBasicScrollToBottom
: will now passdebounce
andthreshold
toComposer
, fix #2Composer
:debounce
prop to control debouncing ononScroll
event, default to17
FunctionContext
:scrollTo
now support"bottom"
, in addition to anumber
, fix #1- This will help when animating scroll position while new content was added to the panel
FunctionContext
:scrollToStart
function to scroll to the start, depends onmode
StateContext
:animating
returnstrue
if the scroll position is being animatedStateContext
:atStart
indicates if the scroll position is at the start or not, depend onmode
Changed
- Performance improvements
Context
is now separated intoFunctionContext
,InternalContext
andStateContext
for better performance and reduce exposureFunctionContext
is static and only hold functions for manipulating the panelInternalContext
is static and for internal use (to overcome shortcomings ofReact.createRef
)StateContext
is dynamic and change when scroll position change
StateContext
will now only update if there are any meaningful changes
- Added
displayName
to context lerna
bumped from2.11.0
to3.4.3
[1.1.0] - 2018-06-22
Added
- Container class name
[1.0.0] - 2018-06-17
Added
- Initial release