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

Drag and drop scrolling container #16535

Closed
plchampigny opened this issue Jul 16, 2019 · 10 comments
Closed

Drag and drop scrolling container #16535

plchampigny opened this issue Jul 16, 2019 · 10 comments
Labels
area: cdk/drag-drop feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@plchampigny
Copy link

Feature Description

In version 8.1.0 of components, the new scrolling feature enables auto scrolling of the cdkDropList or the viewport. It would be awesome to specify the drag scroll container if the scrolling container is not the droplist or the viewport.

Cdk drag scroll enables this feature using the vsDragScrollContainer directive,
https://github.com/volser/cdk-drag-scroll

Use Case

Container with scrolling containing a droplist that can't be scrolled with a viewport that cant be scrolled. Specifying the container and hooking up on its scrolling should enable scrolling.

@plchampigny plchampigny added the feature This issue represents a new feature or feature request rather than a bug or bug fix label Jul 16, 2019
@andrewseguin andrewseguin added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Jul 16, 2019
@fatmaE19
Copy link

any sollution for that ? i have the same problem :/

@palsmadal
Copy link

palsmadal commented Aug 16, 2019

I have been playing around with some code that does this since I have the same requirements for my application. Basicly it's a new input for the CDKDropList which is called "cdkDropListAutoScrollContainer". Here you just pass inn an element reference and the autoscroll should use this container for scrolling. As it is designed now it will override the scrolling behaviour on both window and the cdkDropList container.

What do you think about this solution?

@palsmadal
Copy link

palsmadal commented Aug 20, 2019

Any feedback on the solution?

@aeslinger0
Copy link

aeslinger0 commented Oct 9, 2019

I'd like to expand on this and suggest that multiple scroll containers be supported (or at least a parent container). I have a page that has many scrollable columns side by side, but unfortunately I'm unable to drag and autoscroll horizontally. You can see what I mean here: https://www.techgroups.com/job-tracker (from a desktop browser)

@leandroz
Copy link

Same as @aeslinger0 , it could be awesome to have the ability to not only scroll vertically but also horizontally between different list containers, similar to a Trello board.

@gabrielkunkel
Copy link

I would settle for a way to adjust where scrolling kicks in on the viewport.

@maknapp
Copy link

maknapp commented Feb 3, 2020

I think this is fixed by #18082.

@elezar42
Copy link

@crisbeto Do you know if there will be an 8.x release that includes #18082?

@crisbeto
Copy link
Member

This is supported now by setting cdkScrollable on the parents that should scroll. Closing.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: cdk/drag-drop feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants