mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 15:10:30 +00:00
!48930 解决全屏/自由窗口切换,第一次多选拖拽,聚拢效果从窗口外移动进入问题
Merge pull request !48930 from Hone/fyq1119
This commit is contained in:
commit
f3c8b93e26
@ -1718,7 +1718,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;
|
||||
|
Loading…
Reference in New Issue
Block a user