Double event listener for single function
The only suggestion I have is..

"click scroll".split(" ") ... why? what was that person thinking?

['click', 'scroll'].forEach() is both faster and shorter.

Aside from that, looks great!