Drag/Scroll into Nothingness
I have Container that is scrollable (long table).
If i make an Element dragable, i can use it to drag into nothingness forever, even thou there is no content there (see attatched gif). Can i prevent that somehow?
I encountered the exact same problem
updates: I found this working example from react table, and then I forked it and reinstalled @dnd-kit/core, and the bug appears
updates: I found that in DndContext, if you don't pass collisionDetection and modifiers, the issue would disappear
In my case I added the modifier "restrictToParentElement", this solve the problem.
modifiers={[restrictToHorizontalAxis, restrictToParentElement]}