Skip to content

UI Focus not working properly with non-1.0 scale factors #9656

@rparrett

Description

@rparrett

Bevy version

main
bisected to: #8855

Relevant system information

AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
SystemInfo { os: "MacOS 13.4.1 ", kernel: "22.5.0", cpu: "Apple M1 Max", core_count: "10", memory: "64.0 GiB" }

What you did

  • Have screen with scale_factor != 1.0 or set a scale_factor_override.
  • cargo run --example button
  • Test focus state by moving mouse near the button's boundaries

What went wrong

Button does not show appropriate focus state. Focus boundaries seem to be different from displayed button boundaries.

buttonbad

Additional information

This was noticed in #9637 but is unrelated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreA-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions