improve widget_on_pointer_down_children

This commit is contained in:
lixianjing 2023-07-12 18:01:30 +08:00
parent 0d15e96026
commit 7e273cd153
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
2023/07/12 2023/07/12
* 修复dialog高亮销毁时没有刷新区域的问题(感谢兆坤提供补丁) * 修复dialog高亮销毁时没有刷新区域的问题(感谢兆坤提供补丁)
* 优化点击事件处理逻辑确保pointer_down的widget是enable且sensitive的(感谢陈聪提供补丁)
2023/07/06 2023/07/06
* 完善tools/common。 * 完善tools/common。

View File

@ -3119,7 +3119,7 @@ ret_t widget_on_pointer_down_children(widget_t* widget, pointer_event_t* e) {
widget->target = target; widget->target = target;
} }
if (widget->target != NULL) { if (widget->target != NULL && widget->target->enable && widget->target->sensitive) {
ret = widget_on_pointer_down(widget->target, e); ret = widget_on_pointer_down(widget->target, e);
} }