iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm

Home Page:https://iced.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested scrollable behaviour

x86y opened this issue · comments

commented

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

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