You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Look in the console: The logged event of cdkDropListDropped does not say that the element with the index 100 (or 99) should be moved, but the element with the index 6 for example should be moved to the index 9.
Expected Behavior
Drag and drop should work with virtual scrolling lists.
Actual Behavior
Serveral different issues according to the virtual scrolling and drag and drop.
For example showing elements on top of each other and calculating the index wrong.
Environment
Angular: 17.3.0
CDK/Material: 18
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows
The text was updated successfully, but these errors were encountered:
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Hey there,
we want to use the drag and drop feature in a virtual scrolling list. But this is not working. Could you please provide some help?
Reproduction
StackBlitz link: https://stackblitz.com/edit/s6orkg?file=src%2Fexample%2Fcdk-virtual-scroll-overview-example.ts
Moving of an element to the bottom of the container, does not scroll down the container:
Steps to reproduce:
Calculating the current and previous index of the element to move is based on the current viewed items not on the real index of the list.
Expected Behavior
Drag and drop should work with virtual scrolling lists.
Actual Behavior
Serveral different issues according to the virtual scrolling and drag and drop.
For example showing elements on top of each other and calculating the index wrong.
Environment
The text was updated successfully, but these errors were encountered: