improve switch

This commit is contained in:
lixianjing 2021-06-05 17:21:55 +08:00
parent 93573455bb
commit 5a57086c58
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
# 最新动态
2021/06/05
* 完善switch控件。修复滑动太快pointer down和pointer up之间没有move事件的问题。
2021/06/04
* scroll bar mobile支持auto\_hide属性。
* 完善 scroll bar mobile 支持圆角。

View File

@ -150,6 +150,7 @@ static ret_t switch_on_event(widget_t* widget, event_t* e) {
case EVT_POINTER_UP: {
aswitch->pressed = FALSE;
if (!aswitch->point_down_aborted) {
switch_on_pointer_move(aswitch, (pointer_event_t*)e);
switch_on_pointer_up(aswitch, (pointer_event_t*)e);
widget_ungrab(widget->parent, widget);
} else {