I'm developing an application in angular 8 that uses jsPlumbToolkit to display and edit flowcharts. However i was experiencing performance issues, so i started digging and eventually realized that the change detection from zone.js was running at every mouse move event. So i tried adding the following line to pollyfills.ts, as shown in this article.
(window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove', 'pointermove'];
But that didn't seem to work, as every mouse event is still fired when i run chrome dev tools performace analysis.
Any help would be greatly appreciated, as i'm currently running out of ideas.