Home
last modified time | relevance | path

Searched refs:targetIndexValue (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_pattern.cpp1060 … auto targetIndexValue = IsLoop() ? targetIndex_.value() : GetLoopIndex(targetIndex_.value()); in OnDirtyLayoutWrapperSwap() local
1061 auto iter = itemPosition_.find(targetIndexValue); in OnDirtyLayoutWrapperSwap()
1069 ? targetIndexValue + GetDisplayCount() in OnDirtyLayoutWrapperSwap()
1070 : targetIndexValue + GetDisplayCount() - 1; in OnDirtyLayoutWrapperSwap()
1074 if (IsLoop() && targetIndexValue < currentIndex_) { in OnDirtyLayoutWrapperSwap()
1075 …auto firstItemIndex = Positive(props->GetCalculatedPrevMargin()) ? targetIndexValue + TotalCount()… in OnDirtyLayoutWrapperSwap()
1076 … : targetIndexValue + TotalCount(); in OnDirtyLayoutWrapperSwap()
1105 … (targetIndexValue - firstItem.first) * (placeItemWidth_.value() + GetItemSpace()); in OnDirtyLayoutWrapperSwap()
1107 … currentOffset_, currentOffset_ - targetPos, targetIndexValue, false, velocity_.value_or(0.0f)); in OnDirtyLayoutWrapperSwap()
1110 …slateAnimation(currentOffset_, currentOffset_ - algo->GetTargetStartPos(), targetIndexValue, false, in OnDirtyLayoutWrapperSwap()