pub fn on_scroll(f: impl FnMut(Event) + 'static) -> EventCallback
Add a scroll event handler at the document level.
scroll
This only has an effect on WASM targets.