MCPcopy
hub / github.com/dolphin-wood/smooth-scrollbar

github.com/dolphin-wood/smooth-scrollbar @v8.8.4 sqlite

repository ↗ · DeepWiki ↗ · release v8.8.4 ↗
225 symbols 438 edges 57 files 31 documented · 14%
README

Smooth Scrollbar

Customizable, Flexible, and High Performance Scrollbars!

npm monthly downloads core size gzip size Build status Gitpod Ready-to-Code

Installation

⚠️ DO NOT use custom scrollbars unless you know what you are doing. Read more

Tell us about the features you want in the next major update.

Via NPM (recommended):

npm install smooth-scrollbar --save

Via Bower:

bower install smooth-scrollbar --save

Browser Compatibility

Browser Version
IE 10+
Chrome 22+
Firefox 16+
Safari 8+
Android Browser 4+
Chrome for Android 32+
iOS Safari 7+

Demo

https://idiotwu.github.io/smooth-scrollbar/

Usage

Since this package has a pkg.module field, it's highly recommended to import it as an ES6 module with some bundlers like webpack or rollup:

import Scrollbar from 'smooth-scrollbar';

Scrollbar.init(document.querySelector('#my-scrollbar'));

If you are not using any bundlers, you can just load the UMD bundle:

<script src="https://github.com/dolphin-wood/smooth-scrollbar/raw/v8.8.4/dist/smooth-scrollbar.js"></script>

<script>
  var Scrollbar = window.Scrollbar;

  Scrollbar.init(document.querySelector('#my-scrollbar'));
</script>

Documentation

latest 7.x

FAQ

  • How to deal with position: fixed elements? #362
  • How to temporarily stop scrolling? #361
  • How to enable hash/anchor scrolling? #360
  • How to direct all scrolling to a particular direction? #359
  • How to disable scrolling in a particular direction? #357
  • more...

Who's Using It

  • Awwwards Conference: An Event for UX / UI Designers and Web Developers.
  • Listeners Playlist: A cool music player designed by Jiyong Ahn sharing musics from the facebook group 'Listeners Playlist'.
  • Matter: A new and better way to grow your professional skills.
  • Parsons Branding: Brand strategy and design studio based in Cape Town.
  • zer0bin: Just a place to paste
  • Feel free to add yours here 🤗.

Credits

License

MIT

Extension points exported contracts — how you extend this code

ScrollbarThumb (Interface)
(no doc) [2 implementers]
src/interfaces/track.ts
EventHandler (Interface)
(no doc)
src/utils/event-hub.ts
ScrollbarPlugin (Interface)
(no doc) [1 implementers]
src/interfaces/plugin.ts
Scrollbar (Interface)
(no doc) [1 implementers]
src/interfaces/scrollbar.ts
ScrollbarTrack (Interface)
(no doc) [1 implementers]
src/interfaces/track.ts
TrackController (Interface)
(no doc) [1 implementers]
src/interfaces/track.ts

Core symbols most depended-on inside this repo

addEvent
called by 24
demo/scripts/monitor.ts
clamp
called by 20
src/utils/clamp.ts
setStyle
called by 13
src/utils/set-style.ts
setMomentum
called by 8
src/interfaces/scrollbar.ts
show
called by 8
src/interfaces/track.ts
eventScope
called by 6
src/utils/event-hub.ts
getPosition
called by 6
src/utils/get-position.ts
_willOverscroll
called by 6
src/plugins/overscroll/index.ts

Shape

Method 118
Function 71
Class 24
Interface 8
Enum 4

Languages

TypeScript100%

Modules by API surface

src/scrollbar.ts24 symbols
src/utils/touch-record.ts20 symbols
src/plugins/overscroll/index.ts16 symbols
src/interfaces/scrollbar.ts16 symbols
demo/scripts/monitor.ts15 symbols
src/index.ts12 symbols
src/plugins/overscroll/glow.ts11 symbols
src/interfaces/track.ts11 symbols
src/plugin.ts10 symbols
src/utils/event-hub.ts7 symbols
src/track/track.ts7 symbols
src/track/thumb.ts6 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@types/dat-gui0.6.3 · 1×
@types/prismjs1.16.0 · 1×
autoprefixer7.2.6 · 1×
chalk2.4.2 · 1×
circular-dependency-plugin5.2.0 · 1×
core-js3.6.4 · 1×
cpx1.5.0 · 1×
css-loader0.28.11 · 1×
dat-gui0.5.0 · 1×
execa0.8.0 · 1×
inquirer6.5.2 · 1×
listr0.12.0 · 1×

For agents

$ claude mcp add smooth-scrollbar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact