This commit is contained in:
lixianjing 2021-08-03 17:55:31 +08:00
parent 63a1a386f1
commit 16e922a96a
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@
2021/08/03
* 键盘支持跟随编辑(指定floating=true即可)
* 更新文档。
* 完善vpage事件处理。
2021/08/02
* 公开函数timer\_manager\_dispatch。

View File

@ -244,7 +244,9 @@ static ret_t vpage_on_current_page_changed(void* ctx, event_t* e) {
uint32_t index = widget_index_of(widget);
if (old_index == index) {
vpage_on_leave(widget, index, new_index);
if (widget_is_window_opened(widget)) {
vpage_on_leave(widget, index, new_index);
}
log_debug("leave vpage: %u\r\n", index);
} else if (new_index == index) {
vpage_on_enter(widget, index, old_index);