Skip to content

Hover bug for clipped containers #24745

Description

@matt-cornell

Bevy version and features

Bevy 0.19.0

What you did

I have some UI code that has hoverable buttons inside a scrollable container. There's a button above the scrollable area that overlaps with the (clipped) button.

What went wrong

In 0.18, hovering over the intersecting region sends the hover event to the button outside the scrolled region, rather than the clipped button within the region. After updating to Bevy 0.19, the clipped button is focused even when the cursor is clearly outside of the scroll region.

Additional information

I've created a repository at https://github.com/matt-cornell/bevy-019-hover-bug that reproduces the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behaviorS-Needs-TriageThis issue needs to be labelled

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions