Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

NK_WIDGET_STATE_LEFT is always triggered while hovering over buttons

Open
#260 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

Nuklear has states that indicate the hover status of a widget. NK_WIDGET_STATE_ENTERED, NK_WIDGET_STATE_HOVER, and NK_WIDGET_STATE_LEFT.

NK_WIDGET_STATE_ENTERED is triggered once when moving onto a widget.
NK_WIDGET_STATE_HOVER is triggered while the mouse is over the widget
NK_WIDGET_STATE_LEFT SHOULD be triggered once when moving off of a widget, however for at least button widgets (I haven't tested others), NK_WIDGET_STATE_LEFT is always triggered when hovering.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the hover behavior for button widgets and trace where NK_WIDGET_STATE_ENTERED, NK_WIDGET_STATE_HOVER, and NK_WIDGET_STATE_LEFT are assigned. Confirm that LEFT is emitted once when the pointer leaves a widget rather than continuously while hovering.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.