Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
NK_WIDGET_STATE_LEFT is always triggered while hovering over buttons
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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