
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
react-wheeler
Advanced tools
React component for listening to and acting on scroll/wheel/touchmove events.
React component for listening to and acting on scroll/wheel/touchmove events.
Installation
yarn add react-wheeler
As a component
import Wheeler from 'react-wheeler';
const YourComponent = () => {
const handleWheelStart = () => {};
const handleWheel = ({ delta }) => {};
const handleWheelEnd = ({ delta }) => {};
return (
<>
<Wheeler
onWheel={handleWheel}
onWheelStart={handleWheelStart}
onWheelEnd={handleWheelEnd}
/>
</>
);
};
| Prop | Type | Default | Description |
|---|---|---|---|
| throttle | Number | 20 | How many milliseconds between each onWheel event |
| onWheelStart | func | Fired when wheeling starts | |
| onWheel | func | Fired while wheeling | |
| onWheelEnd | func | Fired when wheeling has stopped | |
| event | String | 'auto' | Which event to listen to. Possible values 'auto', 'wheel', 'touch' |
| elementRef | React ref | Element reference created with React.createRef(). Required for touch |
yarn install to install dependencies
yarn start to start the file watcher to automatically build on file changes
I'm open for pull requests if you've got any enhancements! You're a star! ⭐
FAQs
React component for listening to and acting on scroll/wheel/touchmove events.
We found that react-wheeler 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.