Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@dflex/draggable
Advanced tools
> Draggable is a native component written in pure JS works for Web and Mobile
Draggable is a native component written in pure JS works for Web and Mobile
npm install @dflex/draggable
DFlex draggable is the simplest solution to create JavaScript draggable elements. No need for special tutorial and thinking about implementation complexity or even migration to different technologies for different frameworks. It can be used with any JavaScript frameworks React, Vue, Angular.
import { store, Draggable } from "@dflex/draggable";
Register draggable element in draggable store:
store.register({ id: string, element: Node });
Create draggable instance onmousedown
:
const draggable = new Draggable(id: string, {x: event.clientX, y: event.clientY});
Move element onmousemove
draggable.dragAt(event.clientX, event.clientY);
End Dragging onmouseup
draggable.endDragging();
You can see full React template here.
Contributes feel free to apply PR for another frameworks.
yarn test draggable
This package is licensed under the GPL-3.0 License
FAQs
Draggable only package for all JavaScript frameworks
The npm package @dflex/draggable receives a total of 80 weekly downloads. As such, @dflex/draggable popularity was classified as not popular.
We found that @dflex/draggable 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.