# dragmove.js

> > joenix

Latest version **1.0.0** (published 2019-07-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install dragmove.js
pnpm add dragmove.js
yarn add dragmove.js
bun add dragmove.js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-07-01 |
| First published | 2019-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | joenix |
| Maintainers | joenix |
| Keywords | dragmove.js |

## Links

- npm: https://www.npmjs.com/package/dragmove.js
- npm.io page: https://npm.io/package/dragmove.js

## Recent versions

- 1.0.0 (latest) — 2019-07-01

## README

# dragmove

> joenix

```bash
npm i dragmove --save
# or
yarn add dragmove
```

```html
<div id="container">
  <div id="put"></div>
</div>

<div id="target"></div>
```

```js
let container = document.querySelector("#container");
let put = document.querySelector("#put");
let target = document.querySelector("#target");

target.dragmove({
  vessel: container,
  thrown: put,
  handle: {
    move({ event, target, x, y }) {
      console.log("in move : ", event, target, x, y);
    },
    drag({ event, target, x, y }) {
      console.log("in drag : ", event, target, x, y);
    },
    drop({ event, target, x, y }) {
      console.log("in drop : ", event, target, x, y);
    }
  }
});
```

---
_Source: https://npm.io/package/dragmove.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
