-
Notifications
You must be signed in to change notification settings - Fork 6.8k
CDK: scrolling page while dragging item does not work #14273
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
Comments
Currently scrolling is disabled intentionally. It'll be enabled once #13588 is resolved. |
any progress on this issue? |
Angular 8 CDK release adding this support? drag and drop inside scroll container |
Any update here? |
This is real show stopper for us as our webapp shows a lot of data and with Dragular2 its no problem to scroll also while dragging. We had to cancel our (almost complete) migration to Material Drag because of this Bug, please fix it soon if possible :/ |
Hi i have tried using this library for my projects ngx-smooth-dnd. Work really well with dnd support and drag on scroll as-well. I have made a sample demo app here |
BUMP |
This bug really is a deal breaker in the Angular Material CDK... |
Any update on this? #13588 |
Any news? |
Any update ? |
Any update? |
any updates? |
1 similar comment
any updates? |
Still having same issue, is there a way to enable scrolling while dragging?? |
any updates? |
I also wonder what changed as dragging while scrolling worked after the update, but now it started happening again - scrolling while dragging somehow offsets the row position so it's not possible to drag item to correct position after scroll has be initiated. This is not happening on the sample https://material.angular.io/cdk/drag-drop/overview, but I'm still wondering what could be the cause of this.. |
So, if anyone still has issues with this I can share solution I found and it's super strange it's not clearly documented. Let's say you have a list and you want to implement DnD with autoscroll for it: <div class="scrollable-content" cdkScrollable>
<ul cdkDropList>
<li cdkDrag *ngFor="let item of items"></li>
</ul>
</div> The important thing here is To summarize, to enable autoscroll you need to import |
So for me the import was actually |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug / Feature request
What is the expected behaviour?
When dragging an item with cdkDrag attribute, user should be able to use mouse wheel to scroll down the page, or the page should scroll down automatically if the draggable list longer than current page's height.
What is the current behaviour?
Mouse scroll on page is not working when dragging an item.
What are the steps to reproduce?
A) Goto https://material.angular.io/cdk/drag-drop/overview
Click on Draggable square in Basic Drag&Drop (Getting started section). While holding left mouse button pressed, try to scroll the page down with mouse wheel or touchpad.
B) Click on Draggable list item in Drag&Drop sorting (Reordering lists section). Make sure that half of the list is not visible in viewport. Click on any item and start dragging it to the bottom of the list. Again, mouse wheel scroll is not working, neither the page gets scrolled down automatically when you try to drag item down the list.
What is the use-case or motivation for changing an existing behaviour?
This is Accessibility related issue and should be working to get the best user experience.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.
Is there anything else we should know?
If you check React's draggable component here (https://react-beautiful-dnd.netlify.com/?selectedKind=single%20vertical%20list&selectedStory=basic&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel) you should get a better understanding of the expected Accessibility feature. Drag the top item to the bottom of the list and see how the page scrolls down. Mouse wheel scroll is also working fine.
The text was updated successfully, but these errors were encountered: