mirror of
https://github.com/openharmony/security_security_component_manager.git
synced 2026-08-24 14:33:25 -04:00
fix Virtual Screen keyEvent
Signed-off-by: baoyang <baoyang9@h-partners.com> Change-Id: I2289a54a48f2f24d08d0eab6dc1d61a841b16e08
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user