mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 23:10:54 +00:00
编码规范同步
Signed-off-by: zhoukai <zhoukai94@huawei.com>
This commit is contained in:
parent
d3ee258bbe
commit
98529cd8fd
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user