Skip to content

VGUI persistent hover button clicks should render correctly #1894

@Rainyan

Description

@Rainyan

Build Info

v28.4-alpha

Description

When a legacy VGUI button is repeatedly pressed with the mouse whilst the mouse hover never exits that target button, the successive presses after the first one display incorrectly:

  • The text of the target button disappears
  • The visual cue (example images below) of the button being held down does not appear

The correct visual cue before the button is held down:

Image

The correct visual cue after the button is held down:

Image

To Reproduce

  • In the main menu, open the bottom-right music player
  • Move the mouse cursor over the Play/Pause button
  • Press the button
  • Do not exit the mouse hover on the target button
  • Press the button again

Expected behavior

All mouse presses provide the same visual feedback as the first mouse press.

Actual behavior

Mouse presses after the first mouse press (when not exiting the hover) have the button's text disappear whilst the button is held down, and the button element itself does not visually depress.

Operating System

  • Windows
  • Linux

Version/Distro

11

Additional context and Screenshots

Mouse1 press state is recorded in the top-left corner of these videos.

Music player example:

mp3-play-button.webm

demoui example:

demoui-open-button.webm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug ReportBug Reports made through the "Report Issue" interface in GitHub.UI/HUDRelates to the HUD, NeoUI, menus, etc

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions