# asvd/dragscroll

micro library for drag-n-drop scrolling style

Repository: https://github.com/asvd/dragscroll
Canonical: https://ross.abutalabs.com/products/dragscroll
Homepage: http://asvd.github.io/dragscroll/
Language: JavaScript
License: MIT
License Family: permissive
Topics: scrolling, dragscroll, javascript, enables-scrolling, mouse, scroll, micro-library, drag
Last push: 2024-05-16T16:33:25+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4182, "days_push": 839, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1115, forks 162 (observed 2026-08-28T04:03:38.307110+00:00)

## What it is
A tiny (910 bytes minified) dependency-free JavaScript library that enables click-and-hold drag scrolling on any scrollable element. It works by adding a 'dragscroll' class to elements and is distributed as a UMD module via npm or Bower.

## Use cases
- make a large scrollable area draggable with the mouse
- enable drag-to-scroll on a webpage body
- scroll a div by clicking and holding instead of using the scrollbar
- add grab-style panning to image or map viewers
- allow scrolling by dragging empty space while keeping text selectable

## When to choose
- you need a tiny, dependency-free drag-scroll solution in vanilla JavaScript
- you want click-and-hold scrolling on any scrollable container or the whole page
- you need something that works anywhere without a framework

## When to avoid
- you need touch/mobile drag scrolling or momentum/inertia effects
- you need text selection with the mouse in the draggable area
- you want a full-featured scroll or pan library with advanced options

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: web-development, frontend
- platform: browser
- tags: drag-scroll, micro-library, vanilla-javascript, no-dependencies, mouse-interaction, javascript

## Member repositories
- asvd/dragscroll (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:38.307110+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:42:09.657927+00:00, confidence not recorded.
  - readme: https://github.com/asvd/dragscroll (fetched 2026-08-28T04:03:38.307110+00:00, sha 66fb0cec03a9)
  - homepage: http://asvd.github.io/dragscroll/ (fetched 2026-08-29T12:45:57.484352+00:00, sha 283b7de633b8)
  - registry_npm: https://registry.npmjs.org/dragscroll (fetched 2026-08-29T12:45:57.493233+00:00, sha 6f2015e4a494)
- Data as of 2026-08-30T08:39:29.467469+00:00.
