Scrollable Horizontally or Vertically Using Mouse Drag | dragScroll.js


dragScroll.js Swipe for additional scrolling that allows users to move content in a scrollable area horizontally or vertically using mouse drag or touch scrolling events.

horizontal scroll with mouse drag, scroll while dragging js, how to scroll while dragging, auto scroll when dragging javascript, drag and drop overflow scroll

How to make use of it:

1. Add your long content to a scrollable container. In this instance, we will apply a panning performance to a picture.

<div class="drag-box">

  <!-- draggable content -->
  <div class="drag">
    <img src="">

2. Load the JavaScript file jquery.dragscroll.min.js after loading the jQuery library.

<script src="" 
<script src="js/jquery.dragscroll.min.js"></script>

3. Attach the plugin to the draggable content and complete.


4. Limit the direction of scrolling: horizontal or vertical.

  direction: 'scrollLeft'

  direction: 'scrollTop'

5. Trigger features on begin/finish/move.

  onStart: function($this) {
  onMove: function($this) {
  onEnd: function($this) {

Drag/Swipe To Scroll Plugin, dragScroll.js Github, drag and drop with scroll, horizontal slider on mouse scroll, horizontal scroll on mouse move

See Demo And Download

Official Website(YuTingtao): Click Here

This superior jQuery/javascript plugin is developed by YuTingtao. For extra Advanced usage, please go to the official website.