|
@@ -16,8 +16,8 @@ void CDiandanFoodItemUI::DoEvent(TEventUI& event)
|
|
|
if (event.Type == UIEVENT_BUTTONUP)
|
|
if (event.Type == UIEVENT_BUTTONUP)
|
|
|
{
|
|
{
|
|
|
m_pManager->SendNotify(this, DUI_MSGTYPE_CLICK);
|
|
m_pManager->SendNotify(this, DUI_MSGTYPE_CLICK);
|
|
|
- // 按压释放后仍悬浮 -> 恢复 hot 态
|
|
|
|
|
- SetCardState("hot");
|
|
|
|
|
|
|
+ // 触摸没有悬浮语义,抬起后恢复普通态,避免商品卡片一直保持 hot。
|
|
|
|
|
+ SetCardState("normal");
|
|
|
}
|
|
}
|
|
|
else if (event.Type == UIEVENT_BUTTONDOWN)
|
|
else if (event.Type == UIEVENT_BUTTONDOWN)
|
|
|
{
|
|
{
|