https://i.sstatic.net/Vx3M7.jpg
I am looking to implement a scroll event listener on a specific element, where an arrow icon will appear when the user scrolls up in the message box. Similar to the functionality seen in the Youtube live chat image above.
Are there any alternative methods for achieving this?