编码规范同步

Signed-off-by: zhoukai <zhoukai94@huawei.com>
This commit is contained in:
zhoukai 2024-11-07 16:46:41 +08:00
parent d3ee258bbe
commit 98529cd8fd

View File

@ -416,8 +416,9 @@ void MoveDragController::CalcDragTargetRect(const std::shared_ptr<MMI::PointerEv
static_cast<uint64_t>(pointerEvent->GetTargetDisplayId()) == moveDragStartDisplayId_) {
std::pair<int32_t, int32_t> trans = CalcUnifiedTranslate(pointerEvent);
moveDragProperty_.targetRect_ =
MathHelper::GreatNotEqual(aspectRatio_, NEAR_ZERO) ? CalcFixedAspectRatioTargetRect(type_, trans.first,
trans.second, aspectRatio_, moveDragProperty_.originalRect_):
MathHelper::GreatNotEqual(aspectRatio_, NEAR_ZERO) ?
CalcFixedAspectRatioTargetRect(type_, trans.first, trans.second,
aspectRatio_, moveDragProperty_.originalRect_):
CalcFreeformTargetRect(type_, trans.first, trans.second, moveDragProperty_.originalRect_);
}
TLOGD(WmsLogTag::WMS_LAYOUT, "drag rect: %{public}s", moveDragProperty_.targetRect_.ToString().c_str());