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

Nested scrollable behaviour #2381

Open x86y opened 1 month ago

x86y commented 1 month ago

Is there an existing issue for this?

Is this issue related to iced?

What happened?

Parent scrollable shouldn't have its focus taken away from children scrollable.

CleanShot 2024-04-08 at 23 50 09

Now, even the text_editor will steal the focus from the main scrollable

What is the expected behavior?

If you start scrolling in any scrollable, the scroll focus shouldn't be stolen from any mouseovered area/widget.

Take a look at the browser behaviour: CleanShot 2024-04-08 at 23 47 49

Version

crates.io release

Operating System

macOS

Do you have any log output?

No response