mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 15:10:30 +00:00
!42167 手柄在富文本上忽略自身的滚动标记
Merge pull request !42167 from LuckClover/RichEditorIgnoreSelf
This commit is contained in:
commit
b9a485b3d5
@ -459,7 +459,22 @@ void RichEditorSelectOverlay::OnAncestorNodeChanged(FrameNodeChangeInfoFlag flag
|
||||
if (IsAncestorNodeGeometryChange(flag)) {
|
||||
UpdateAllHandlesOffset();
|
||||
}
|
||||
BaseTextSelectOverlay::OnAncestorNodeChanged(flag);
|
||||
auto pattern = GetPattern<RichEditorPattern>();
|
||||
CHECK_NULL_VOID(pattern);
|
||||
auto host = pattern->GetHost();
|
||||
CHECK_NULL_VOID(host);
|
||||
FrameNodeChangeInfoFlag changeFlag = flag;
|
||||
if (IsAncestorNodeStartScroll(host->GetChangeInfoFlag()) || IsAncestorNodeEndScroll(host->GetChangeInfoFlag())) {
|
||||
auto parent = host->GetAncestorNodeOfFrame(true);
|
||||
changeFlag = FRAME_NODE_CHANGE_INFO_NONE;
|
||||
while (parent) {
|
||||
if (parent->GetChangeInfoFlag() != FRAME_NODE_CHANGE_INFO_NONE) {
|
||||
changeFlag = changeFlag | parent->GetChangeInfoFlag();
|
||||
}
|
||||
parent = parent->GetAncestorNodeOfFrame(true);
|
||||
}
|
||||
}
|
||||
BaseTextSelectOverlay::OnAncestorNodeChanged(changeFlag);
|
||||
}
|
||||
|
||||
void RichEditorSelectOverlay::OnHandleMoveStart(bool isFirst)
|
||||
|
Loading…
Reference in New Issue
Block a user