-1

I try to use scrollTop to detected where the user scroll on some div but got this error.

I try to implement this https://stackblitz.com/edit/angular-kqvraz?file=src%2Fapp%2Fsticky-header.directive.ts

I am looking for a replacement for this option. Thanks.

Baruch Mashasha
  • 951
  • 1
  • 11
  • 29

1 Answers1

0

How about ?

 console.log($event.srcElement['scrollLeft'], $event.srcElement['scrollTop']);
Kiran Shinde
  • 5,732
  • 4
  • 24
  • 41