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

Merge pull request !48981 from zzc0127/move
This commit is contained in:
openharmony_ci 2024-11-20 06:18:44 +00:00 committed by Gitee
commit e783b789c0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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()) {