角标跳变

Change-Id: Ie2cd7d3a402132351628a0a435e5ee3694aa0698
Signed-off-by: Hone <wangzhihao42@huawei.com>
This commit is contained in:
w.chenglong 2024-11-14 20:05:42 +08:00 committed by Hone
parent a396339abc
commit 56ff87e439

View File

@ -817,17 +817,20 @@ void GestureEventHub::OnDragStart(const GestureEvent& info, const RefPtr<Pipelin
DragEventActuator::UpdatePreviewPositionAndScale(
imageNode, imageNode->GetOffsetInSubwindow(subWindow->GetWindowRect().GetOffset()));
auto gatherNodeOffset = DragDropManager::GetTouchOffsetRelativeToSubwindow(container->GetInstanceId());
OffsetF offset;
if (pipeline->HasFloatTitle()) {
gatherNodeOffset.SetX(
gatherNodeOffset.GetX() + static_cast<float>((CONTAINER_BORDER_WIDTH + CONTENT_PADDING).ConvertToPx()));
gatherNodeOffset.SetY(
gatherNodeOffset.GetY() +
static_cast<float>((pipeline->GetCustomTitleHeight() + CONTAINER_BORDER_WIDTH).ConvertToPx()));
offset = { static_cast<float>((CONTAINER_BORDER_WIDTH + CONTENT_PADDING).ConvertToPx()),
static_cast<float>((pipeline->GetCustomTitleHeight() + CONTAINER_BORDER_WIDTH).ConvertToPx()) };
}
DragEventActuator::UpdateGatherAnimatePosition(gatherNodeChildrenInfo, gatherNodeOffset);
if (textNode) {
DragEventActuator::UpdatePreviewPositionAndScale(
textNode, textNode->GetOffsetInSubwindow(subWindow->GetWindowRect().GetOffset()));
textNode, textNode->GetOffsetInSubwindow(subWindow->GetWindowRect().GetOffset()) + offset);
}
DragEventActuator::MountPixelMap(
subWindowOverlayManager, eventHub->GetGestureEventHub(), imageNode, textNode, true);