Improve Tree dragdrop performance
I'm submitting a ... (check one with "x")
[ x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Plunkr Case (Bug Reports) http://plnkr.co/edit/kAkednrgwgx1vphxu0wD?p=preview
Current behavior On large Prime trees the performance of drag and drop makes the tree difficult or almost impossible to use.
Expected behavior When dragging and dropping nodes the performance should not be affected by number of nodes in tree.
Minimal reproduction of the problem with instructions See plunker above. Try to drag and drop nodes in tree to see performance almost crawl to a halt
Please tell us about your environment: Windows 10
-
Angular version: 5.1.0
-
PrimeNG version: 5.0.2
-
Browser: [ all ]
Hello, This is highly critical for our application. Is this being worked on? Any estimate? Thank you
I'm also experiencing this problem when i try to drag a node in a large tree, is there any progress on this?
Is there any news on this? We are having a lot of issues with this as well because every dragover/dragenter/dragleave triggers angulars change detection. It would be solved with running the drag listeners out of zone as Jaykob86 had done.
As of today this issue still occurs on the latest version of primeng 11.2.0.
This gif was recorded on Firefox 85.0 showing the official primeng tree drag'n'drop demo. On Edge and Chrome the issue occurs to a less extend but it is still very noticeable.
I would highly appreciate if you can look into this issue.

Any plans to work on it? It makes the tree pretty much unusable, especially in larger applications.
@osolecki just in case this is still relevant, the accepted answer's blacklist implementation got rid of my perf issues. The blacklist I added consists of ['addEventListener:dragover', 'addEventListener:
dragenter'], no visible effect on the UI (hover styles are still applied correctly in the tree) but the performance gain is clear.
Unfortunately the downside is that the override is global, so this might cause issues if your other components rely on dragover / dragenter, and my CPU fans still wind up a lot more than necessary while dragging, so ultimately hoping for a fix on PrimeNG side
Hi,
So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!
Best Regards,
Hi. We're currently using PrimeNG 15.2.0 on our project it the issue still remains. I pretty sure I've tested even the 16.x.x version and the result was the same. It would be nice if you could put the problem on your roadmap.