React hook to add draggability to scrollable content easily
npm install use-draggable-scrollReact hook to add draggability to scrollable content easily.

``tsx
import { useDraggableScroll } from 'use-draggable-scroll';
const Component = () => {
const ref = useRef(null);
const { onMouseDown } = useDraggableScroll(ref);
return (
$3
You can specify the drag direction that is allowed (
vertical, horizontal or both(default))`tsx
const { onMouseDown } = useDraggableScroll(ref, { direction: 'vertical' });
``