Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
jquery-draggable-scroll
Advanced tools
#DraggableScroll (jQuery) Easy styled jQuery plugin for use DragNDrop for scrolling container with some content. For more information look at live demo.
npm i jquery-draggable-scroll
<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>
<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 = { 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 };
FAQs
move element scroll bar by drag it
The npm package jquery-draggable-scroll receives a total of 19 weekly downloads. As such, jquery-draggable-scroll popularity was classified as not popular.
We found that jquery-draggable-scroll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.