With `focus` touches can hit multiple windows

Open
#26,381 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating the deprecated focus implementation and the UI touch-interaction path; the issue does not name files or tests. Reproduce the report with two windows and overlapping UI nodes, then determine how window identity is handled. Done means a touch affects only the node in its own window, or the deprecated focus path is removed as intended.

Written by the indexing model from the issue text.

Description

A-Picking A-UI C-Bug

Bevy version and features

main + 0.19

What you did

Spawn two windows with UI nodes at the same position on each, Interaction can register hits from touches on both nodes.

What went wrong

focus doesn't check which window the touch input came from.

Additional Information

focus is deprecated, another reason why it should be removed.

Dominant language
Rust
Stars
49.8k
Forks
5.1k
Avg merge
3d 4h
Merged PRs (30d)
136

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bevyengine/bevy

All issues in bevyengine/bevy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.