Skip to content

Conversation

@apekros
Copy link
Contributor

@apekros apekros commented Dec 23, 2025

Objective

The situation this addresses was kindly diagrammed out by @ickshonpe:

Details image
The closer item to navigate to is the wider rectangle, but as the center is further away, the bottom rectangle would be chosen, which is incorrect.

Solution

This change does edge to edge distance instead of center to center. I have left alignment scoring to use center to center direction but happy to change this too, I was unsure!

Testing

Added a test for the scenario diagrammed above.


@alice-i-cecile alice-i-cecile added this to the 0.18 milestone Dec 23, 2025
@ickshonpe ickshonpe added C-Bug An unexpected or incorrect behavior A-UI Graphical user interfaces, styles, layouts, and widgets A-App Bevy apps and plugins S-Needs-Review Needs reviewer attention (from anyone!) to move forward D-Straightforward Simple bug fixes and API improvements, docs, test and examples and removed A-App Bevy apps and plugins labels Dec 23, 2025
@ickshonpe ickshonpe self-requested a review December 23, 2025 09:23
@ickshonpe
Copy link
Contributor

Going to be out today, but I'll try and find time for a review this evening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants