!48564 修复拖拽发起节点判断异常的问题

Merge pull request !48564 from 贺晨韬/hct_fix_1114
This commit is contained in:
openharmony_ci 2024-11-14 14:14:00 +00:00 committed by Gitee
commit 69c7195077
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -318,7 +318,8 @@ void DragEventActuator::OnCollectTouchTarget(const OffsetF& coordinateOffset, co
CHECK_NULL_VOID(frameNode);
auto prepareDragFrameNode = dragDropManager->GetPrepareDragFrameNode().Upgrade();
if (dragDropManager->GetPreDragStatus() >= PreDragStatus::PREVIEW_LANDING_FINISHED ||
(frameNode->GetContextRefPtr() == pipeline && frameNode != prepareDragFrameNode)) {
(frameNode->GetContextRefPtr() == pipeline && frameNode != prepareDragFrameNode &&
info.GetSourceDevice() != SourceType::MOUSE)) {
TAG_LOGI(AceLogTag::ACE_DRAG, "Drag preview is landing finished, stop dragging.");
return;
}