pub fn onwheel<__Marker>( _f: impl SuperInto<EventHandler<Event<WheelData>>, __Marker> ) -> Attribute
The wheel event fires when the user scrolls the mouse wheel while hovering over the element.
wheel
Event Data: TouchData
TouchData
fn app() -> Element { rsx!( rect { width: "100", height: "100", background: "red", onwheel: |_| println!("Scrolling with the wheel!") } ) }