Skip to content

Cursor position is in the wrong coordinate space #10

@benfrankel

Description

@benfrankel

https://github.com/benfrankel/pyri_tooltip/blob/a342aa87a8b02ddbcf96a5d1d122daba5f911f26/src/context.rs#L104C1-L104C56

This returns logical coordinates, but UI operates in physical coordinates (since Bevy 0.15). According to bevyengine/bevy#17907 (review), it's preferable to convert the cursor position to physical rather than convert the UI to logical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions