I have this situation in which I need to scroll an element into the viewport. The problem is that I don\'t know which element is scrollable. For example, in Portrait the bod
This is the way to find what you want.
document.addEventListener('scroll', (e) => { console.log(e.target.scrollingElement.scrollTop); })