Skip to content

Does DFlex work with pointer events? #719

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

You must be logged in to vote

When you change the element position using any current drag-and-drop library, you recreate the entire DOM tree according to the new order. This happens with each new position. What DFlex actually does are two things:

  1. It offers transformation only. If your app doesn't need to reposition the elements, DFlex can apply CSS transformations to the elements without even changing the DOM.

  2. When committing to the DOM is enabled (it's enabled by default), DFlex will check the DOM tree and only update the affected elements. So let's say you have a list with 10 elements and you switch positions between the last two. DFlex will check the element. If the position is in place, it will leave the eleme…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by ddenev
Comment options

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

Comment options

You must be logged in to vote
3 replies
@jalal246
Comment options

@ddenev
Comment options

@jalal246
Comment options

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