New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-draggable-scroll

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-draggable-scroll

react-draggable-scroll is a React package that provides the ability to scroll by dragging the content. It is largely based on [react-scroll-ondrag](https://github.com/dotcore64/react-scroll-ondrag), but cleaned up and with added functionality to support d

latest
Source
npmnpm
Version
1.3.1
Version published
Weekly downloads
32
-56.76%
Maintainers
1
Weekly downloads
 
Created
Source

react-draggable-scroll

react-draggable-scroll is a React package that provides the ability to scroll by dragging the content. It is largely based on react-scroll-ondrag, but cleaned up and with added functionality to support draggable scroll for mobile.

Installation

You can install the package using npm or yarn:

npm install react-draggable-scroll

or

yarn add react-draggable-scroll

Usage

Here is a basic example of how to use react-draggable-scroll:

import React, { useRef } from "react";
import useScrollOnDrag from "react-draggable-scroll";

const MyComponent = () => {
  const containerRef = useRef(null);
  const { events } = useScrollOnDrag(containerRef);

  return (
    <div {...events} ref={containerRef}>
      Your scrollable content here
    </div>
  );
};

Features

  • Easy to use drag-to-scroll functionality.
  • Supports both desktop and mobile environments.
  • Simple integration with existing React components.

License

This project is licensed under the MIT License.

For more details, refer to the LICENSE file.

FAQs

Package last updated on 26 Jan 2026

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