Merge pull request #908 from eax0r/master
Fix a bug wherein combobox cannot be closed by clicking the header + Update documentation link to use Statically (CLEAN)master
commit
1b3a5f1199
|
@ -25,7 +25,7 @@ render backends it only focuses on the actual UI.
|
|||
- No global or hidden state
|
||||
- Customizable library modules (you can compile and use only what you need)
|
||||
- Optional font baker and vertex buffer output
|
||||
- [Documentation](https://rawgit.com/vurtun/nuklear/master/doc/nuklear.html)
|
||||
- [Documentation](https://cdn.statically.io/gh/vurtun/nuklear/master/doc/nuklear.html)
|
||||
|
||||
## Building
|
||||
|
||||
|
|
|
@ -16928,7 +16928,11 @@ nk_nonblock_begin(struct nk_context *ctx,
|
|||
} else {
|
||||
/* close the popup if user pressed outside or in the header */
|
||||
int pressed, in_body, in_header;
|
||||
#ifdef NK_BUTTON_TRIGGER_ON_RELEASE
|
||||
pressed = nk_input_is_mouse_released(&ctx->input, NK_BUTTON_LEFT);
|
||||
#else
|
||||
pressed = nk_input_is_mouse_pressed(&ctx->input, NK_BUTTON_LEFT);
|
||||
#endif
|
||||
in_body = nk_input_is_mouse_hovering_rect(&ctx->input, body);
|
||||
in_header = nk_input_is_mouse_hovering_rect(&ctx->input, header);
|
||||
if (pressed && (!in_body || in_header))
|
||||
|
@ -25471,6 +25475,8 @@ 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
|
||||
///
|
||||
/// - 2019/09/20 (4.01.3) - Fixed a bug wherein combobox cannot be closed by clicking the header
|
||||
/// when NK_BUTTON_TRIGGER_ON_RELEASE is defined.
|
||||
/// - 2019/09/10 (4.01.2) - Fixed the nk_cos function, which deviated significantly.
|
||||
/// - 2019/09/08 (4.01.1) - Fixed a bug wherein re-baking of fonts caused a segmentation
|
||||
/// fault due to dst_font->glyph_count not being zeroed on subsequent
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "nuklear",
|
||||
"version": "1.0.0",
|
||||
"version": "4.01.3",
|
||||
"repo": "vurtun/nuklear",
|
||||
"description": "A small ANSI C gui toolkit",
|
||||
"keywords": ["gl", "ui", "toolkit"],
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
/// - [yy]: Minor version with non-breaking API and library changes
|
||||
/// - [zz]: Bug fix version with no direct changes to API
|
||||
///
|
||||
/// - 2019/09/20 (4.01.3) - Fixed a bug wherein combobox cannot be closed by clicking the header
|
||||
/// when NK_BUTTON_TRIGGER_ON_RELEASE is defined.
|
||||
/// - 2019/09/10 (4.01.2) - Fixed the nk_cos function, which deviated significantly.
|
||||
/// - 2019/09/08 (4.01.1) - Fixed a bug wherein re-baking of fonts caused a segmentation
|
||||
/// fault due to dst_font->glyph_count not being zeroed on subsequent
|
||||
|
|
|
@ -134,7 +134,11 @@ nk_nonblock_begin(struct nk_context *ctx,
|
|||
} else {
|
||||
/* close the popup if user pressed outside or in the header */
|
||||
int pressed, in_body, in_header;
|
||||
#ifdef NK_BUTTON_TRIGGER_ON_RELEASE
|
||||
pressed = nk_input_is_mouse_released(&ctx->input, NK_BUTTON_LEFT);
|
||||
#else
|
||||
pressed = nk_input_is_mouse_pressed(&ctx->input, NK_BUTTON_LEFT);
|
||||
#endif
|
||||
in_body = nk_input_is_mouse_hovering_rect(&ctx->input, body);
|
||||
in_header = nk_input_is_mouse_hovering_rect(&ctx->input, header);
|
||||
if (pressed && (!in_body || in_header))
|
||||
|
|
Loading…
Reference in New Issue