-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
[BUG] Weird scrolling behavior with react-beautiful-dnd #426
Comments
Any suggestion or workaround to fix that ? |
I think the problem lies somewhere in the sample itself (rather than the library), probably the way the placeholder is calculated. |
Another sample based on the official one (https://virtuoso.dev/react-beautiful-dnd/) : We don't understand why this only happens when items are dragged to the bottom. dnd.mov |
Feel free to examine the DOM structure and see what causes the flickering. I am unlikely to get to debugging that anytime soon. |
have you tried adding an extra height to those container divs? |
@loun4 were you able to control it somehow? it only happens when you drag something to the end of any other column. doesn't happen in the same one. |
I had this problem too, the solution for me was to add <Droppable droppableId={`${status.Id}`}>
{provided => {
const columnFind = columns.find(column => column.statusId === status.Id);
return (
<div
ref={provided.innerRef}
className={classNames(styles.tasksList, {
[styles.emptyColumn]: !columnFind?.tasks.length,
})}
{...provided.droppableProps}
>
{buildTasks(columnFind)}
{provided.placeholder}
</div>
);
}}
</Droppable> |
Hey, any solution to this? It is only happening for the bottom most element. My hunch is since the virtual list has it as the last element, it is unable to remove the top item and change indexes accordingly and css transition is not applied. Can someone please help? PS: I tired using |
I want to ask if you have solved this problem? |
Describe the bug
Dragging items to the bottom of the list causes strange scrolling behavior
Reproduction
https://codesandbox.io/s/react-virutoso-with-react-beautiful-dnd-forked-pslfr?file=/src/index.js
Screenshots
dnd-scroll.mov
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: