mirror of
https://github.com/lvgl/lvgl.git
synced 2024-12-13 11:33:45 +08:00
lv_dropdown: fix missing event when used with encoder
This commit is contained in:
parent
c3f051ac52
commit
1c88c1e8d4
@ -1,17 +1,18 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## v7.0.2 (under developement)
|
||||
## v7.0.2 (under development)
|
||||
*Available in the `master` branch*
|
||||
|
||||
- `lv_textarea` fix wrong cursor positon when clicked after the last character
|
||||
- `lv_textarea` fix wrong cursor position when clicked after the last character
|
||||
- Change all text related indices from 16-bit to 32-bit integers throughout whole library. #1545
|
||||
- Fix gestures
|
||||
- Do not call `set_px_cb` for transparent pixel
|
||||
- Fix list button focus in material theme
|
||||
- Fix crash when the a text area is cleared with the backspace of a keyboard
|
||||
- Add versionnumber to `lv_conf_template.h`
|
||||
- Add version number to `lv_conf_template.h`
|
||||
- Add log in true double buffering mode with `set_px_cb`
|
||||
- `lv_dropdown`: fix missing `LV_EVENT_VALUE_CHANGED` event when used with encoder
|
||||
|
||||
## v7.0.1 (01.06.2020)
|
||||
|
||||
|
@ -935,6 +935,9 @@ static lv_res_t lv_dropdown_signal(lv_obj_t * ddlist, lv_signal_t sign, void * p
|
||||
lv_dropdown_close(ddlist);
|
||||
if(ext->sel_opt_id_orig != ext->sel_opt_id) {
|
||||
ext->sel_opt_id_orig = ext->sel_opt_id;
|
||||
uint32_t id = ext->sel_opt_id; /*Just to use uint32_t in event data*/
|
||||
lv_res_t res = lv_event_send(ddlist, LV_EVENT_VALUE_CHANGED, &id);
|
||||
if(res != LV_RES_OK) return res;
|
||||
lv_obj_invalidate(ddlist);
|
||||
}
|
||||
#if LV_USE_GROUP
|
||||
|
Loading…
Reference in New Issue
Block a user