Socket
Book a DemoInstallSign in
Socket

@activix/double-scroll

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activix/double-scroll

A jQuery plugin that duplicate the bottom scrollbar of an element to its top

1.0.2
latest
npmnpm
Version published
Weekly downloads
63
-54.01%
Maintainers
2
Weekly downloads
 
Created
Source

jQuery DoubleScroll Plugin

A Simple jQuery plugin to display additional scrollbar on top of the element. This plugin does not requires jQuery-UI

Usage

Call the doubleScroll function on the desired jQuery elements on page load :

$(document).ready(function() {
   $('.double-scroll').doubleScroll();
});

Options

You can configure the double scroll with the following options :

{
	contentElement: undefined, // Widest element, if not specified first child element will be used
	scrollCss: {
		'overflow-x': 'auto',
		'overflow-y': 'hidden'
	},
	contentCss: {
		'overflow-x': 'auto',
		'overflow-y': 'hidden'
	},
	onlyIfScroll: true, // top scrollbar is not shown if the bottom one is not present
	resetOnWindowResize: false // recompute the top ScrollBar requirements when the window is resized
}
contentElement

The element to use as the scroll reference. First child element is used if nothing is specified.

scrollCss

Key-Value pairs that allow you to customize the top scrollbar CSS.

contentCss

Key-Value pairs that allow you to customize the content CSS.

onlyIfScroll

If true, will display the top scrollbar only if the content is scrollable...

resetOnWindowResize

If true, will attach an event to regenerate the top scrollbar when the window is resized. Use it when the scrollable element has a width which is relative to the window width.

Licence

Dual licensed under the MIT and GPL licenses:

  • http://www.opensource.org/licenses/mit-license.php
  • http://www.gnu.org/licenses/gpl.html

Authors

FAQs

Package last updated on 02 Mar 2018

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.