-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Support for nested scroll containers #131
Comments
Given the complexity in supporting a single level, I think this is out of scope for now! |
@alexreardon Does this issue affect Core boards / Jira Software boards? I'm trying to improve our board experience in Dovetail and running into a lot of issues that seem to be caused by this one. I would love to know a little bit about how the Core / Software teams have tackled this. |
Hi @alexreardon, Thanks |
I am running into this issue too (scrollable columns + horizontal scroll on the board). I think it would be very helpful if you could tackle this in the near future. Thank you! |
Doesn't quite understand this issue, the long lists in a short container seems to work fine Also, agree to @goldo, spamming too much console.warn() in the codebase isn't healthy |
@alxtz Nested scroll containers would mean that you can vertically scroll through individual columns whilst having another parent scroll container as right now you can't. |
@goldo perhaps we could add an option to opt out of all warnings - even in development? 🤔 |
Hmm might be dangerous wouldnt it ? Id like to know if there is a warning in dev mode, but if i understand it and I accept it, I would like to get rid of it. Maybe disabling only this warning would be best ?
…On 3 Aug 2018 at 07:05 +0200, Alex Reardon ***@***.***>, wrote:
@goldo perhaps we could add an option to opt out of all warnings? 🤔
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@goldo would making the |
@alxtz like I said, I think warnings are useful, specially in case of bumps, so I would prefer not to remove all the warnings. In this case, we are totally OK with this issue, it's not a problem at all, in our application. That's why we would like to remove only this specific warning, and keep all the others. |
This comment has been minimized.
This comment has been minimized.
This issue is a real problem for Kanban/Trello like apps (a big use case for D&D apps I guess?). The warning is very nice, but it is pretty unclear before making an app, you realize it when it is too late. I hope this will be fixed in the near future though 🙏 |
an option to opt out of all warnings will be good. Too much warning while the functionality work as per normal. |
@jebarjonet brings up a great point. I'd echo others' points that the option to opt out would be highly appreciated! |
Would it be okay for me to make a PR implementing this opt-out functionality? Should I open a new issue for it? |
Hi @alexreardon, are you planning to implement this feature in the near future? |
We have a dev warning opt out coming in v10
…On Thu, 25 Oct 2018 at 1:49 am, Boér Máté ***@***.***> wrote:
Hi @alexreardon <https://github.com/alexreardon>,
are you planning to implement this feature in the near future?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#131 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACFN7RipwmL8IBPWNBqOOuCr8kUSykoeks5uoH3dgaJpZM4PrKeZ>
.
|
Just to clarify the core of this issue (not the dev warning complaints)... it is currently impossible to create a Trello clone (for example) with this library because you cannot have scrolling columns and a horizontally scrolling board container. |
The package |
@abhay187 the docs for Pragmatic drag and drop will hopefully be public by the end of this year. I also plan on giving consumers of |
I confirm @InstantHuman solution works. I had |
Thank you for the work on the migration
Versus migration:
We are using |
@InstantHuman et al - could somebody post a sample of this solution? I've tried putting a div (actually, a MUI Box) with |
Having overflow: auto on a parent of the Droppable causes the following dnd warning: > dnd.esm.js:31 @hello-pangea/dndDroppable: unsupported nested scroll container detected.A Droppable can only have one scroll parent (which can be itself)Nested scroll containers are currently not supported.We hope to support nested scroll containers soon: atlassian/react-beautiful-dnd#131 See https://github.com/atlassian/react-beautiful-dnd/issues/131\#issuecomment-1634398431
Having overflow: auto on a parent of the Droppable causes the following dnd warning: > dnd.esm.js:31 @hello-pangea/dndDroppable: unsupported nested scroll container detected.A Droppable can only have one scroll parent (which can be itself)Nested scroll containers are currently not supported.We hope to support nested scroll containers soon: atlassian/react-beautiful-dnd#131 See https://github.com/atlassian/react-beautiful-dnd/issues/131\#issuecomment-1634398431
Can't believe this PR is older than my children |
any way to fix this issue guys ? |
Rolled back to version 10. Works fine for me |
One thing that i am really curious about is ... |
@alexreardon could you please share the solutions for the nested scrolling issue? Additionally, you mentioned providing pragmatic drag and drop documentation along with a written update for react-beautiful-dnd? |
Yes +1 to the comment above! Would love to hear about this:
|
Dear @alexreardon , I visit this place every week hoping to see the long-awaited solution to the issue. I truly hope that you will find the time for this. Thank you for the work you have already done; it is truly impeccable. However, this option does not allow us to fully utilize the boards in swimlane mode. Thank you. |
Hello, @alexreardon, I keep coming back here and really hope that you will take the time to help solve the problem or point me in the right direction for finding a solution. |
+1 |
What's going on here, let me share another song Under Her Spell |
I really want this feature. |
anyone from 2024 ? |
friends. The problem with scrolling is solved here. |
I think that this issue should be closed. |
There are also other options from different authors. The DND Toolkit is a good one: https://dndkit.com/ They have a working example: https://master--5fc05e08a4a65d0021ae0bf2.chromatic.com/?path=/story/presets-sortable-multiple-containers--many-items (zoom in if you don't have scrollbars) I totally agree, this should be just closed, since even the author moved on. Sincerely, I'm here just to see how many people still have faith that this is going to be fixed. |
I ended up using React DnD, it went smoothely but costom styling is not so easy. |
We are knee deep into using beautiful dnd it now. We want to implement virtua with dnd. |
Adding support for n-level deep scroll containers. Currently, only a single level is supported
Current plan
This plan will allow for nested scroll containers, and also improve the performance of scroll updates
Collection (drag start)
Droppable
elementsdata-*
attribute to it. (egdata-react-beautiful-dnd-scroll-container=${index}
). Cache the element and its result during the collectionnode.parentElement
isnull
then move onto the nextDroppable
. If an element is found that has previously been investigated then skip the rest of the upwards search. Use any previously found scroll parent ancestry.position:fixed
for ourposition:fixed
supportStorage while dragging
Droppable
we will keep a map (or linked list) that registers aDroppable
s scroll containers.Updates (scroll events)
A single scroll listener is added to the
window
as acapture:true
listener. This will capture all scroll events.data-react-beautiful-dnd-scroll-container
attribute then trigger an action to update all relevantDroppable
s. Oneredux
update for allDroppables
(fixes Performances and scrolling issues #244). The internal algorithms will need to be updated to account for0 <-> many
scroll containerswindow
then trigger a window scroll action. Currently, this is handled by the drag handles. Drag handles will no longer handle thisdata-react-beautiful-dnd-scroll-container
then it can be ignoredAuto scrolling
Clean up (drag end)
data-react-beautiful-dnd-scroll-container
attributeswindow
event listenerBonus
The text was updated successfully, but these errors were encountered: