ng2-dnd icon indicating copy to clipboard operation
ng2-dnd copied to clipboard

Performance Issue: Drag/Drop is too slow with large array sets.

Open malchijah opened this issue 7 years ago • 2 comments

  • I'm submitting a ... [ ] bug report [ ] feature request [ ] question about the decisions made in the repository

  • Do you want to request a feature or report a bug?

  • What is the current behavior?

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.

  • What is the expected behavior?

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment:

  • Angular version: 2.X.X
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

malchijah avatar Nov 21 '17 19:11 malchijah

this is because of the change detection, In a previous project we implemented a drag and drop that bypassed ngZone and it was amazingly fast. I don't know how can we do it with this library.

ghost avatar Nov 23 '17 09:11 ghost

Had the same problem. I have a huge array (~2000) of draggable elements on the page. Solved when I read this article. Really helped. A few changes in project and all elements drag like a charm :)

mikehoh avatar Jan 29 '18 10:01 mikehoh