Skip to content

vStrength is not working as expected.  #37

@ankursehdev

Description

@ankursehdev

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions