Skip to content

More information on configuring committing changes to DOM #732

Answered by jalal246
ddenev asked this question in Q&A
Discussion options

You must be logged in to vote

Under the hood, DFlex doesn't commit any changes to the DOM. Instead, it utilizes CSS translate indefinitely. This means that even if the dragged element occupies a new position, the DOM order will remain the same and the DOM tree will remain untouched. This ensures optimal performance, as DFlex guarantees zero layout shifts and utilizes CSS within the animated frame.

Now, what happens in the case of a migration between two containers?

In short, DFlex will maintain the same behavior. Even if the dragged element is positioned within a different parent container, it will still be positioned using CSS translate.

The default option is to commit everything to the DOM, including the two scenari…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ddenev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants