Fix nk_property hover bug
This commit is contained in:
parent
0a2b04bfaa
commit
6e80e2a646
@ -27243,6 +27243,7 @@ nk_property_behavior(nk_flags *ws, const struct nk_input *in,
|
||||
struct nk_rect empty, int *state, struct nk_property_variant *variant,
|
||||
float inc_per_pixel)
|
||||
{
|
||||
nk_widget_state_reset(ws);
|
||||
if (in && *state == NK_PROPERTY_DEFAULT) {
|
||||
if (nk_button_behavior(ws, edit, in, NK_BUTTON_DEFAULT))
|
||||
*state = NK_PROPERTY_EDIT;
|
||||
@ -29172,6 +29173,7 @@ nk_tooltipfv(struct nk_context *ctx, const char *fmt, va_list args)
|
||||
/// - [yy]: Minor version with non-breaking API and library changes
|
||||
/// - [zz]: Bug fix version with no direct changes to API
|
||||
///
|
||||
/// - 2021/03/17 (4.07.0) - Fix nk_property hover bug
|
||||
/// - 2021/03/15 (4.06.4) - Change nk_propertyi back to int
|
||||
/// - 2021/03/15 (4.06.3) - Update documentation for functions that now return nk_bool
|
||||
/// - 2020/12/19 (4.06.2) - Fix additional C++ style comments which are not allowed in ISO C90.
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nuklear",
|
||||
"version": "4.06.4",
|
||||
"version": "4.07.0",
|
||||
"repo": "Immediate-Mode-UI/Nuklear",
|
||||
"description": "A small ANSI C gui toolkit",
|
||||
"keywords": ["gl", "ui", "toolkit"],
|
||||
|
@ -8,6 +8,7 @@
|
||||
/// - [yy]: Minor version with non-breaking API and library changes
|
||||
/// - [zz]: Bug fix version with no direct changes to API
|
||||
///
|
||||
/// - 2021/03/17 (4.07.0) - Fix nk_property hover bug
|
||||
/// - 2021/03/15 (4.06.4) - Change nk_propertyi back to int
|
||||
/// - 2021/03/15 (4.06.3) - Update documentation for functions that now return nk_bool
|
||||
/// - 2020/12/19 (4.06.2) - Fix additional C++ style comments which are not allowed in ISO C90.
|
||||
|
@ -51,6 +51,7 @@ nk_property_behavior(nk_flags *ws, const struct nk_input *in,
|
||||
struct nk_rect empty, int *state, struct nk_property_variant *variant,
|
||||
float inc_per_pixel)
|
||||
{
|
||||
nk_widget_state_reset(ws);
|
||||
if (in && *state == NK_PROPERTY_DEFAULT) {
|
||||
if (nk_button_behavior(ws, edit, in, NK_BUTTON_DEFAULT))
|
||||
*state = NK_PROPERTY_EDIT;
|
||||
|
Loading…
Reference in New Issue
Block a user