onGanttScroll not working in Angular

Hi, I have attached this using gantt.attachEvent method inside ngAfterViewInit hook (after all the data is loaded ) but it doesn’t log any data when gantt is scrolled. Only 0 0 is logged when it gets initialized.

Am I adding it in the wrong place ?

Hello,
You need to use onGanttScroll handler where Gantt is initialized, i.e. you need to add this event in ngOnInit() method.
Please check the angular demo with onGanttScroll event:
https://files.dhtmlx.com/30d/fb11266a5b11456897220dfa296fd8e1/gantt-angular-onGanttScroll.zip