I’m trying to log something to the console when the user scrolls using _hyperscript, but it doesn’t seem to be working, although other eventlisteners like ‘click’, and ‘touchstart’ are working.
This is the way I’m doing it:
<body _="on scroll alert('something')"> // content // </body>
I’ve searched everywhere even the docs says, The event-name can be a symbol, a dot-separated symbol or a string that names the event. The most obvious events of interest are are standard HTML DOM events such as click, focus/blur, change, etc, so ‘scroll’ should be supported since it is among the standard HTML DOM events.
Why is it not working?