Skip to content

HTML 5 Native Drag and Drop #306

Answered by clauderic
phungleson asked this question in Q&A
Discussion options

You must be logged in to vote

@dnd-kit is intentionally not built on the HTML5 Drag and Drop API because it has severe limitations.

It does not support touch devices or using the keyboard to drag items, which means that the libraries that are built on top of it need to expose an entirely different implementation to support those input methods.

This typically increases the complexity of the codebase and the overall bundle size of the library, and leads to inconsistencies between the mouse, touch and keyboard layers because they're powered by entirely different implementations.

The HTML5 Drag and Drop API is also limiting; it doesn't support common use-cases such as locking dragging to a specific axis or to the bounds o…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pjeby
Comment options

Answer selected by clauderic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants