Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jquery-draggable-scroll

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-draggable-scroll

move element scroll bar by drag it

  • 0.9.9002
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
decreased by-30%
Maintainers
1
Weekly downloads
 
Created
Source

#DraggableScroll (jQuery) Easy styled jQuery plugin for use DragNDrop for scrolling container with some content. For more information look at live demo.

Install

npm i jquery-draggable-scroll

Usage

By data-attributes (Html default options)

<div data-draggable-scroll>
    <div data-draggable-scroll-control="left:30vw"></div>
    <div data-draggable-scroll-control="right:30vw"></div>
    <div data-draggable-scroll-control="top:30vh"></div>
    <div data-draggable-scroll-control="bottom:30vh"></div>
    <div data-draggable-scroll-content>
        <table class="very-big-table></table>
    </div>
</div>

By JS

<div #id='scrolled-content'> <div data-draggable-scroll-control="left:30vw"></div> <div data-draggable-scroll-control="right:30vw"></div> <div data-draggable-scroll-control="top:30vh"></div> <div data-draggable-scroll-control="bottom:30vh"></div> <div data-draggable-scroll-content> <table class="very-big-table></table> </div> </div>

$('#scrolled-content').draggableScroll(options);

Options (defaultConfig)

options = { scrollX: true, // is need to scroll by X direction scrollY: true, // is need to scroll by Y direction dropOnMouseLeave: false, // drop scrolled content by mouseleae animateScrollByControls: true, // Work only when some controls is exist (if you want to disable default animate scrolling by click on controls) animateScrollTime: 200, // Work only when controls is exist. Time to animate scroll by controls hideScrollbars: true, // Hide default scrollbars inertiaByDragging: true, // Inertial move on drop scrolled content detectDirectionDrag: true, // Add class to scrolled content with directions names removeDirectionDragOnMouseUp: true // Leave classnames with last direction on drop scrolled content };

Keywords

FAQs

Package last updated on 20 Jun 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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc