mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
improve switch
This commit is contained in:
parent
93573455bb
commit
5a57086c58
@ -1,5 +1,8 @@
|
||||
# 最新动态
|
||||
|
||||
2021/06/05
|
||||
* 完善switch控件。修复滑动太快,pointer down和pointer up之间没有move事件的问题。
|
||||
|
||||
2021/06/04
|
||||
* scroll bar mobile支持auto\_hide属性。
|
||||
* 完善 scroll bar mobile 支持圆角。
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user