Skip to content

Prevent windows hits from being used as anchors#56

Merged
aevyrie merged 3 commits intoaevyrie:mainfrom
GrandChaman:fix-window-as-anchor
Feb 9, 2026
Merged

Prevent windows hits from being used as anchors#56
aevyrie merged 3 commits intoaevyrie:mainfrom
GrandChaman:fix-window-as-anchor

Conversation

@GrandChaman
Copy link
Contributor

Implementation of the fix described in #55.

Changes can be reviewed per commits.

// Since `bevy` 0.17.3:
//
// If the current hit is on a window, we cannot use the `hit.position` as an anchor
// as the `hit.position` is in viewport coordinates.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// as the `hit.position` is in viewport coordinates.
// as the `hit.position` is in screen coordinates.

I have a doubt on which is the correct nomenclature here.

@Cr0a3 Cr0a3 mentioned this pull request Dec 18, 2025
@Cr0a3
Copy link

Cr0a3 commented Dec 18, 2025

Great Pr!
@aevyrie may you merge this?

@ladvoc
Copy link

ladvoc commented Jan 2, 2026

I have tested and confirmed it does indeed fix the issue.

@aevyrie
Copy link
Owner

aevyrie commented Jan 17, 2026

This needs a clippy fix before it can be merged.

@GrandChaman
Copy link
Contributor Author

GrandChaman commented Jan 19, 2026

This needs a clippy fix before it can be merged.

I chose to silence the warning as to not mix refactoring with the fix. Hope that's ok!

@aevyrie aevyrie merged commit 2f3673f into aevyrie:main Feb 9, 2026
7 checks passed
@aevyrie
Copy link
Owner

aevyrie commented Feb 9, 2026

Released as v0.7.1

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments