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
35
9

3.0.0

Diff
c
compulim
published 3.0.0 •

Changelog

Source

[3.0.0] - 2020-06-21

Breaking changes

  • scrollToBottom/scrollToEnd/scrollToStart/scrollToTop now accept an option { behavior: 'auto' | 'smooth' }
    • Without the option, it is by default to artificial smooth scrolling (smooth), to keep existing behavior
    • This behavior may change in the future, by defaulting to discrete scrolling (auto), to better align with HTML DOMElement.scrollIntoView standard
    • During the transition, please always pass { behavior: 'smooth' } to keep existing behavior

Changed

Added

  • Added version number to <meta name="react-scroll-to-bottom:version"> for diagnostic purpose, in PR #51
  • Added useAnimatingToEnd getter to indicate if it is animating towards to the end, in PR #49
    • The existing useAnimating getter only indicate if it is animating to any scroll positions
  • Added scrollTo function to scroll to a specific scrollTop value, this is similar to DOMElement.scrollIntoView(), in PR #49
    • The signature is scrollTo(scrollTop: number, options: { behavior: 'auto' | 'smooth' })
    • Pass { behavior: 'smooth' } for synthetic smooth scrolling
  • Added useObserveScrollTop hook to observe scroll event, in PR #49
    • This effect function will be called rapidly on scroll, please avoid expensive code such as calling setter of useState and any code that would cause re-render

Fixed

  • Cancel scroll animation on mouse wheel or touch gesture, in PR #49
  • Calling scrollTo should cancel any existing scroll animation, in PR #49
c
compulim
published 2.0.1-master.e7d148e •
c
compulim
published 2.0.1-master.a034d6f •
c
compulim
published 2.0.1-master.81abc90 •
c
compulim
published 2.0.1-master.e0fa23e •
c
compulim
published 2.0.0 •

Changelog

Source

[2.0.0] - 2020-05-07

Breaking changes

  • We moved to React Hooks and it requires React 16.8.6 or up
    • Hooks will allow us to write simpler and more maintainable code
    • Developers can use our React Hooks to perform various operations

Changed

Added

Fixed

  • Fix atStart was not reporting correctly, in PR #31
  • Chrome: Fix scroll to bottom button should hide when using <kbd>TAB</kbd> to scroll the bottommost button into view, in PR #46
c
compulim
published 2.0.0-master.54c0dd4 •
c
compulim
published 2.0.0-master.34c6a27 •
c
compulim
published 2.0.0-master.f19b14d •
c
compulim
published 2.0.0-master.3eb21bc •