张洋 3 weeks ago
parent
commit
be928ff488
1 changed files with 2 additions and 2 deletions
  1. 2 2
      zhipuzi_pos_windows/control/CDiandanFoodItemUI.cpp

+ 2 - 2
zhipuzi_pos_windows/control/CDiandanFoodItemUI.cpp

@@ -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)
 	{
 	{