Draggable container #588
Unanswered
cojoclaudiu
asked this question in
Q&A
Replies: 1 comment
-
Try this hook react-use-draggable-scroll for react. const isFirstMount = useFirstMountState();
const scrollbarRef = useRef(null);
const { events } = useDraggable(
{ current: scrollbarRef.current?.osInstance()?.elements().viewport },
{ isMounted: !isFirstMount },
);
return <OverlayScrollbarsComponent ref={scrollbarRef} {...events}></OverlayScrollbarsComponent>; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Can you drag the whole container similar like https://norserium.github.io/react-indiana-drag-scroll/ ?
Or is there any implementation with https://norserium.github.io/react-indiana-drag-scroll/ I was trying without any result
Thank you
Beta Was this translation helpful? Give feedback.
All reactions