Change-Id: I350bb18128d4c2419f4a5a46f522f7e131d04033
Signed-off-by: majian <majian59@huawei.com>
This commit is contained in:
majian 2024-11-22 17:56:15 +08:00
parent 1156cb6610
commit 254d85e49a

View File

@ -2580,7 +2580,6 @@ void SceneSession::HandleCompatibleModeDrag(WSRect& rect, SizeChangeReason reaso
MoveDragController::TargetRectCoordinate::GLOBAL);
auto windowWidth = windowRect.width_;
auto windowHeight = windowRect.height_;
if (isSupportDragInPcCompatibleMode && windowWidth > windowHeight &&
(rect.width_ < compatibleInPcLandscapeWidth - compatibleInPcDragLimit ||
rect.width_ == static_cast<int32_t>(windowLimits.minWidth_))) {
@ -2785,7 +2784,6 @@ void SceneSession::OnMoveDragCallback(SizeChangeReason reason)
MoveDragController::TargetRectCoordinate::GLOBAL);
bool isGlobal = (reason != SizeChangeReason::DRAG_END);
bool needFlush = (reason != SizeChangeReason::DRAG_END);
TLOGD(WmsLogTag::WMS_LAYOUT, "Rect: [%{public}d, %{public}d, %{public}u, %{public}u], reason: %{public}d, "
"isCompatibleMode: %{public}d, isSupportDragInPcCompatibleMode: %{public}d", rect.posX_, rect.posY_,
rect.width_, rect.height_, reason, isCompatibleModeInPc, isSupportDragInPcCompatibleMode);