Skip to content

0.14.0 - pane_grid prevents mouse's ButtonPressed event from bubbling to widget below #3175

@chutne9

Description

@chutne9

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

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?

In the current pane_grid implementation, shell.capture_event() is called on mouse ButtonPressed handler, preventing the underlying widget from receiving the event. However, shell.capture_event() is not called on mouse ButtonReleased handler, allowing it to bubble down normally, but leading to different behavior between mouse ButtonPressed and mouse ButtonReleased event.

What is the expected behavior?

I suggest removing shell.capture_event() from the ButtonPressed handler so that both events can pass through the widget below normally.

Version

crates.io release

Operating System

macOS

Do you have any log output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions