# quickdrag

> a tiny module to quickly drag html elements.

Latest version **1.1.1** (published 2019-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install quickdrag
pnpm add quickdrag
yarn add quickdrag
bun add quickdrag
```

## 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.1.1 |
| Published | 2019-03-20 |
| First published | 2019-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | valentin degenne |
| Maintainers | vdegenne |
| Keywords | drag |

## Links

- npm: https://www.npmjs.com/package/quickdrag
- Repository: https://github.com/vdegenne/quickdrag
- Homepage: https://github.com/vdegenne/quickdrag#readme
- Issues: https://github.com/vdegenne/quickdrag/issues
- npm.io page: https://npm.io/package/quickdrag

## Recent versions

- 1.1.1 (latest) — 2019-03-20
- 1.0.0 — 2019-03-12

## README

# quickdrag

A tiny npm module to drag html elements on a page. This script was quickly made for developement purpose (do not use in production).

If you wish to use in production, please contact me for a quick collaboration towards making this script more complex.

This module will only work for elements not embedded in shadow doms.

## installation

```bash
yarn add quickdrag -D
```

## use

import the module in your document :

```html
<script type=module src=./node_modules/quickdrag/quickdrag.js></script>
```

Then tag the elements you want to drag :

```html
<div class="draggable">...</div>
```

The imported module will automatically process the `[class^=draggable]` elements.
Load the page and now you can drag the element holding a click.

If you wish to register a draggable element manually :

```html
<script type=module>
  import {registerForDraggable} from './node_modules/quickdrag/quickdrag.js';
  registerForDraggable(document.getElementById('dragMe'));
</script>
```

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