[richEditor]手柄移动进行缩放后保持可见

Signed-off-by: z00797037 <zhangzecong@huawei.com>
Change-Id: If360eaea7f0cc3bc4c0fefed7966173fb42fc0c4
This commit is contained in:
z00797037 2024-11-20 11:24:18 +08:00
parent f21793b60d
commit 3e0e9b8f45

View File

@ -81,6 +81,8 @@ bool RichEditorSelectOverlay::CheckHandleVisible(const RectF& paintRect)
return false;
}
// Keep handle visible when moving
CHECK_NULL_RETURN(!isHandleMoving_ || IsSingleHandle(), true);
auto visibleContentRect = GetVisibleContentRect();
GetClipHandleViewPort(visibleContentRect);
if (visibleContentRect.IsEmpty()) {