bevyengine / bevyengine/bevy

`button` example does not handle hovering correctly on macOS in debug mode

Open
#8,451 0 comments 0 reactions 0 assignees View on GitHub
A-UI C-Bug O-MacOS S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

e900bd9e1285d664568402c0e7a54fdf5b192395 (main)

## Relevant system information

OS: macOS Monteray (12.6.3)

## What you did

Run the `button` UI example in debug mode:

```
cargo run --example button
```

## What went wrong

I expected the button to change the text form "Button" to "Hovered" when moving the cursor over to the button. Instead, it does not change the text when I move the cursor to the button. This occurs on native macOS builds in debug mode; release mode and the web example works fine.

## Additional information

It seems like the `Interaction` state does not update when simply moving the cursor to the UI button. Instead, if you click and hold outside the UI button and drag the cursor over to the UI button, it will update as expected. Setting different `WinitSettings` did not have any effect.

https://user-images.githubusercontent.com/9679284/233463606-c60a0190-53c7-4de2-9e85-f7542b5a0256.mov

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.