From d99cd6518119ad6dc7a584c19efd76ae095120ca Mon Sep 17 00:00:00 2001 From: Hone Date: Tue, 19 Nov 2024 19:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=96=E6=8B=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hone --- .../core/components_ng/manager/drag_drop/drag_drop_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/core/components_ng/manager/drag_drop/drag_drop_manager.cpp b/frameworks/core/components_ng/manager/drag_drop/drag_drop_manager.cpp index dcf11005738..e73b60c9686 100644 --- a/frameworks/core/components_ng/manager/drag_drop/drag_drop_manager.cpp +++ b/frameworks/core/components_ng/manager/drag_drop/drag_drop_manager.cpp @@ -1717,7 +1717,7 @@ OffsetF DragDropManager::GetTouchOffsetRelativeToSubwindow(int32_t containerId, containerId >= MIN_SUBCONTAINER_ID ? SubwindowManager::GetInstance()->GetParentContainerId(containerId) : containerId); CHECK_NULL_RETURN(subwindow, OffsetF(x, y)); - auto subwindowOffset = subwindow->GetRect().GetOffset(); + auto subwindowOffset = subwindow->GetWindowRect().GetOffset(); touchOffset.SetX(touchOffset.GetX() - subwindowOffset.GetX()); touchOffset.SetY(touchOffset.GetY() - subwindowOffset.GetY()); return touchOffset;