fix Virtual Screen keyEvent

Signed-off-by: baoyang <baoyang9@h-partners.com>
Change-Id: I2289a54a48f2f24d08d0eab6dc1d61a841b16e08
This commit is contained in:
baoyang
2025-08-13 10:30:49 +08:00
parent 7269c0a2aa
commit 58cf3bdb25
@@ -115,7 +115,7 @@ int32_t SecCompEntity::CheckClickInfo(SecCompClickEvent& clickInfo, int32_t supe
bool isInPCVirtualScreen = IsInPCVirtualScreen(crossAxisState);
SC_LOG_INFO(LABEL, "The cross axis state: %{public}d, the fold offset y: %{public}d.",
static_cast<int32_t>(crossAxisState), superFoldOffsetY);
if (isInPCVirtualScreen) {
if (isInPCVirtualScreen && clickInfo.type == ClickEventType::POINT_EVENT_TYPE) {
clickInfo.point.touchY += superFoldOffsetY;
componentInfo_->rect_.y_ += superFoldOffsetY;
}