Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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 400 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.