Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overflow-y scroll causes wrong dragging item position #91

Open
kimmin920 opened this issue Apr 21, 2022 · 1 comment
Open

overflow-y scroll causes wrong dragging item position #91

kimmin920 opened this issue Apr 21, 2022 · 1 comment

Comments

@kimmin920
Copy link

https://codesandbox.io/s/drag-n-drop-using-react-nestable-forked-ndmeo7?file=/src/styles.css

it's 2.0.0 version I'm using but still it has issue.

when you scroll down of nested lists, when dragging an item, it is positioned as higher as much I scrolled up.

could you please help me?

@ToddSandberg
Copy link

I was able to get the draggable item to follow the mouse even after scroll with the follow line in my css file

.nestable-drag-layer > .nestable-list {
  position: sticky !important;
}

Not sure if I'm missing something that requires the nestable-list class to have position: absolute here other than that sticky is not supported in some browsers: https://www.w3schools.com/cssref/pr_class_position.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants