mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 15:10:30 +00:00
角标跳变
Change-Id: Ie2cd7d3a402132351628a0a435e5ee3694aa0698 Signed-off-by: Hone <wangzhihao42@huawei.com>
This commit is contained in:
parent
a396339abc
commit
56ff87e439
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user