dark4p solved this, but a possible alternative is to use:
window.addEventListener('scroll', function(){ console.log('scrolled'); }, true);
true indicates capture is used, not bubble handling, so that it works anyway. I am not sure if this can have any negative interactions with the material.
source share