bevyengine / bevyengine/bevy

Hover bug for clipped containers

Open
#24,745 3 comments 0 reactions 0 assignees View on GitHub
A-Picking A-UI C-Bug S-Ready-For-Implementation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## 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.

Contributor guide

Open the contributing guide

Research direction

Start by running the reproduction repository linked in the issue with Bevy 0.19.0, then compare its hover behavior with Bevy 0.18 using the same overlapping, scrollable UI. Trace the UI hover and clipping behavior from the reproduction case; done means the clipped button is not focused when the cursor is outside the scroll region and the overlapping button receives the event.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.