
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
react-scroll-captor
Advanced tools
A component that confines scroll events to its immediate child. Great for dropdown menus etc.
A component that confines scroll events to its immediate child. Great for dropdown menus etc.
yarn add react-scroll-captor
import ScrollCaptor from 'react-scroll-captor';
class GroovyThing extends Component {
atBottom = () => {
// user has scrolled to the bottom
}
render () {
return (
<ScrollCaptor onBottomArrive={this.atBottom}>
<ScrollableElement />
</ScrollCaptor>
);
}
}
Property | Type | Default | Description |
---|---|---|---|
isEnabled | boolean | true | Enable or disable the component. |
onBottomArrive | function | -- | Called when the user reaches the bottom of the scrollable element. |
onBottomLeave | function | -- | Called when the user leaves the bottom of the scrollable element. |
onTopArrive | function | -- | Called when the user reaches the top of the scrollable element. |
onTopLeave | function | -- | Called when the user leaves the top of the scrollable element. |
FAQs
A component that confines scroll events to its immediate child. Great for dropdown menus etc.
The npm package react-scroll-captor receives a total of 48 weekly downloads. As such, react-scroll-captor popularity was classified as not popular.
We found that react-scroll-captor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.