
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
react-input-with-drag
Advanced tools
Lightweight, zero-dependency, number input component with mouse drag actions just like in Blender and 3D Studio Max.
Lightweight, zero-dependency, number input component with mouse drag actions just like in Blender and 3D Studio Max.
npm install --save react-input-with-drag
import InputWithDrag from 'react-input-with-drag';
import type { InputWithDragChangeHandler } from 'react-input-with-drag';
function App() {
const handleChange: InputWithDragChangeHandler = value => {
// fired on input change and drag end
};
const handleInput: InputWithDragChangeHandler = value => {
// fired on every input change, including every pixel dragged
};
return (
<InputWithDrag value={100} onChange={handleChange} onInput={handleInput} />
);
}
Since react-input-with-drag overloads a regular HTML input, all the typical properties are accepted, like onChange
, onInput
, step
, min
, and max
. Being a React component, you can override the styles with either style
or className
as well.
Additionally, these are props to customise react-input-with-drag:
prop | default | description |
---|---|---|
modifiers | { shiftKey: 0.1 } | Sets the precision of a drag when a modifier key is pressed |
Note
A modifier takes the step property into account. If
step
is 0.1, the default shift key will add/subtract by 0.01
FAQs
Lightweight, zero-dependency, number input component with mouse drag actions just like in Blender and 3D Studio Max.
The npm package react-input-with-drag receives a total of 15 weekly downloads. As such, react-input-with-drag popularity was classified as not popular.
We found that react-input-with-drag demonstrated a healthy version release cadence and project activity because the last version was released less than 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.