Skip to content

Button example is broken #11235

@nicopap

Description

@nicopap
  • Bevy version: 425570a (main as of today)

What you did

  • Run the button example with cargo run --example button.

What went wrong

  • At first, the window is transparent.
  • When moving the mouse, it displays the button
  • When hovering over the button, the button says "hover"
  • When pressing and holding down the mouse left button, it keeps saying "hover"
  • It only says "pressed" after releasing the mouse left button
  • If I move afterward the mouse, it goes back to "hover"

What I expected

  • Window shows up immediately
  • Button should say "pressed" as soon as I start holding down the button
  • Button should stop saying "pressed" when I stop holding down the button

Currently it's basically the inverse.

Additional information

Removing WinitSettings::desktop_app() fixes it.

This might be related to #11052. Supposedly, the updating mechanisms do not work as expected anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenA-UIGraphical user interfaces, styles, layouts, and widgetsA-WindowingPlatform-agnostic interface layer to run your app inC-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examples

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions