# @acfatah/drag-to-scroll

> Scroll an element by mouse dragging

Latest version **1.0.0** (published 2023-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @acfatah/drag-to-scroll
pnpm add @acfatah/drag-to-scroll
yarn add @acfatah/drag-to-scroll
bun add @acfatah/drag-to-scroll
```

## 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 | 2023-03-06 |
| First published | 2023-03-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Achmad F. Ibrahim |
| Maintainers | acfatah |
| Keywords | drag to scroll, drag scrolling |

## Links

- npm: https://www.npmjs.com/package/@acfatah/drag-to-scroll
- Repository: https://github.com/acfatah/drag-to-scroll
- Homepage: https://github.com/acfatah/drag-to-scroll#readme
- Issues: https://github.com/acfatah/drag-to-scroll/issues
- npm.io page: https://npm.io/package/@acfatah/drag-to-scroll

## Recent versions

- 1.0.0 (latest) — 2023-03-06

## README

# drag-to-scroll

A JavaScript library that enables scrolling using mouse dragging.

## Installation

### Npm Installation

```bash
npm i @acfatah/drag-to-scroll
```

### [jsDelivr](https://www.jsdelivr.com) CDN Service

```javascript
import { dragToScroll } from 'https://cdn.jsdelivr.net/gh/acfatah/drag-to-scroll@1.0.0/index.min.js'
```

## Usage

Create the class instance using the element you want to enable dragging-based scrolling. 

```javascript
import { dragToScroll } from '@acfatah/drag-to-scroll';

const container = document.querySelector('.container');
dragToScroll(container);
```

## License

[MIT](./LICENSE)

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