Socket
Socket
Sign inDemoInstall

@altack/minimal-scrollbar

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @altack/minimal-scrollbar

An Angular directive to fix Windows's "mid-nineties" scrollbars. No extra configuration, no required markup and also minimal size (3.8 KB MINIFIED, 1.2 KB GZIPPED)


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
151 kB
Created
Weekly downloads
 

Readme

Source

MinimalScrollbar

An Angular directive to fix Windows's "mid-nineties" scrollbars.
No extra configuration, no required markup and also minimal size (3.8 KB MINIFIED, 1.2 KB GZIPPED)

How to use it?

  1. Install MinimalScrollbar
    npm i @altack/minimal-scrollbar

  2. Add the MinimalScrollbarModule to your app.module.ts (or any other)

  3. Use it like a directive on your -already- scrollable container
    <div class="container" minimal-scrollbar>
    <div class="content">long content goes here</div>
    </div>

How it works?

The idea is to preserve the unobtrusive scrollbars of iOS, Android and MacOS and replace Windows scrollbars on Chrome, Firefox and Edge Credit goes to the guys at FilamentGroup. This is just an Angular implementation of its workaround. https://www.filamentgroup.com/lab/scrollbars/

FAQs

Last updated on 24 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc