From 7ff9d77302af35f279f900665627dfd5b099fdcf Mon Sep 17 00:00:00 2001 From: baoyang Date: Wed, 13 Aug 2025 10:30:49 +0800 Subject: [PATCH] fix Virtual Screen keyEvent Signed-off-by: baoyang Change-Id: I2289a54a48f2f24d08d0eab6dc1d61a841b16e08 --- .../security_component_service/sa/sa_main/sec_comp_entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/security_component_service/sa/sa_main/sec_comp_entity.cpp b/services/security_component_service/sa/sa_main/sec_comp_entity.cpp index 88c3394..3328004 100644 --- a/services/security_component_service/sa/sa_main/sec_comp_entity.cpp +++ b/services/security_component_service/sa/sa_main/sec_comp_entity.cpp @@ -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(crossAxisState), superFoldOffsetY); - if (isInPCVirtualScreen) { + if (isInPCVirtualScreen && clickInfo.type == ClickEventType::POINT_EVENT_TYPE) { clickInfo.point.touchY += superFoldOffsetY; componentInfo_->rect_.y_ += superFoldOffsetY; } -- Gitee