I asked
this question on SO and maybe somebody here would be kind enough to answer it. Basically, the problem is that I have a parent component and a child component, both able to scroll but I'm experiencing the common issue in which after reaching the bottom of the child component, its parent component begins to scroll down. I think the following GIF can be helpful to describe this issue:

I was trying to fix this by using a custom directive:
@Directive({
selector: '[scroller]',
})
export class ScrollerDirective {
constructor(private elRef: ElementRef, private renderer: Renderer) {
renderer.listen(elRef.nativeElement, 'scroll', (event) => {
console.log('event!');
event.stopPropagation();
event.preventDefault();
})
}
}
Does anyone know how to fix this?
Regards