# asvd-dragscroll **Repository Path**: mirrors/asvd-dragscroll ## Basic Information - **Project Name**: asvd-dragscroll - **Description**: Dragscroll 是一款极小的拖拽风格的 JavaScript 库(978 字节) - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/dragscroll - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-09-28 - **Last Updated**: 2025-08-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README dragscroll ========== Dragscroll is a micro JavaScript library (910 bytes minified) which enables scrolling via holding the mouse button ("drag and drop" or "click and hold" style, [online demo](http://asvd.github.io/dragscroll/)). It has no dependencies and is written in vanilla JavaScript (which means it works anywhere). ### Usage Download the and unpack [distribution](https://github.com/asvd/dragscroll/releases/download/v0.0.8/dragscroll-0.0.8.tar.gz), or install it using [Bower](http://bower.io/): ```sh $ bower install dragscroll ``` or npm: ```sh $ npm install dragscroll ``` Load the `dragscroll.js` in a preferable way (that is an UMD module): ```html ``` Add the `dragscroll` class to a scrollable element: ```html