react-dnd-scrolling
react-dnd-scrolling copied to clipboard
vStrength is not working as expected.
Hello, Thank you for the library. I am trying to integrate it with a custom multi-select drag and drop but the vertical scroll is not working as expected.
The scroll is working but works on the bottom of the container - I am trying to change the VStrength but it's not working. I would appreciate any help.
Codesandbox: https://codesandbox.io/p/sandbox/multiselect-with-scroll-s6lgym
I have added this to container.jsx
import withScrolling, {
createVerticalStrength,
createHorizontalStrength,
} from "react-dnd-scrolling";
const ScrollingComponent = withScrolling("div");
const hStrength = createHorizontalStrength(400);
const vStrength = createVerticalStrength(400);
const TOTAL_ITEMS = 30;