-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DragDrop component performance improvements #4590
Comments
same problem |
UPDATE if i change https://github.com/primefaces/primeng/blob/master/src/app/components/dragdrop/dragdrop.ts
i win Performance
i win more Performance |
@cagataycivici can you help? |
I think we should use NgZone runOutsideAngular to avoid triggering change detection. That is what we did in the past to solve cases like these. |
Can someone confirmed if this has improve tree drag drop experience? If yes, what did it involve - simply use the version 5.1.0-M1and up OR any extra code change as well? Please suggest |
Open http://plnkr.co/edit/czFGnPpLJ7RhIhVVb5u8?p=preview
Open Console
Drag a Item from Tree to the right side
Show in Console
-> dragStartProject
-> dropProject
-> dragEndProject
the output dragEndProject is in the same second
Now click on the Button "Expand All"
Drag a Item from Tree to the right side
Show in Console
-> dragStartProject
-> dropProject
-> dragEndProject
the output dragEndProject is NOT in the same second, you can wait 10 - 20 sec
What is the motivation / use case for changing the behavior?
see top, i cant wait 10 - 20 sec
Please tell us about your environment:
Angular version: 4 & 5
PrimeNG version: 4 & 5
Browser: [all]
(same Problem on DataTable - Row Grouping)
Kind Regards
Patrick
The text was updated successfully, but these errors were encountered: