🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

scroll-width

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scroll-width

uses hightech javascript technology to discover your browsers scroll-bar width/height

0.4.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

scroll-width

Because not everyone hides the scrollbar on OSX ;) Tiny AMD module that will return you the browsers scrollbar width can be installed via bower, AMD is optional.

Installation

NPM

  npm install scroll-width --save

yarn

  yarn add scroll-width

Bower

  bower install scroll-width --save

AMD usage:

  require(['scrollWidth'], function(scrollWidth){
    alert("My scroll's width is " + scrollWidth + "px");
  });

without AMD:

  alert("My scroll's width is " + window.scrollWidth + "px");

Keywords

scroll

FAQs

Package last updated on 13 Apr 2017

Did you know?

Socket

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