You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-scroll-to-bottom

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-scroll-to-bottom - npm Package Versions

1
57
9

1.3.1-master.1fa3dd1

Diff
c
compulim
published 1.3.1-master.1fa3dd1 •
c
compulim
published 1.3.1-master.60cfde3 •
c
compulim
published 1.3.0 •

Changelog

Source

[1.3.0] - 2019-01-21

Changed

  • Playground: bumped to react@16.6.0, react-dom@16.6.0, and react-scripts@2.1.6
  • *: Update algorithm, instead of using componentDidUpdate, we now use setInterval to check if the panel is sticky or not, this help to track content update that happen outside of React lifecycle, for example, HTMLImageElement.onload event
  • Composer: scrollTo() now accepts "100%" instead of "bottom"

Removed

  • Removed threshold props because the algorithm is now more robust
c
compulim
published 1.2.1-master.da00208 •
c
compulim
published 1.2.1-master.a34589b •
c
compulim
published 1.2.1-master.445806e •
c
compulim
published 1.2.1-master.5db73ad •
c
compulim
published 1.2.1-master.4dc05f6 •
c
compulim
published 1.2.0 •

Changelog

Source

[1.2.0] - 2018-10-28

Added

  • AutoHideFollowButton: will now hide when it start animating scroll position
  • BasicScrollToBottom: will now pass debounce and threshold to Composer, fix #2
  • Composer: debounce prop to control debouncing on onScroll event, default to 17
  • FunctionContext: scrollTo now support "bottom", in addition to a number, 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 on mode
  • StateContext: animating returns true if the scroll position is being animated
  • StateContext: atStart indicates if the scroll position is at the start or not, depend on mode

Changed

  • Performance improvements
    • Context is now separated into FunctionContext, InternalContext and StateContext for better performance and reduce exposure
      • FunctionContext is static and only hold functions for manipulating the panel
      • InternalContext is static and for internal use (to overcome shortcomings of React.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 from 2.11.0 to 3.4.3
c
compulim
published 1.1.1-master.0bb6be8 •