iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
22.96k stars 1.06k forks source link

MouseArea does not report mouse wheel events. #2375

Open Gremious opened 1 month ago

Gremious commented 1 month ago

Is there an existing issue for this?

Is this issue related to iced?

What happened?

I wanted to use MouseArea to capture scrolling. However, it only captures mouse button events.

What is the expected behavior?

It should have on_scroll which sends gives you a Scroll:Up/Scroll:Down, or two separate up/down hooks.

Scrolling with a mouse is a mouse-related event so MouseArea should capture that.

Version

crates.io release

Operating System

Windows

Do you have any log output?

No response