Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_overscroll.cpp23 const int32_t HALF_NUMBER = 2; variable
65 …erScroll_ = (overScroll_ > 0.0 ? 1 : -1) * std::min(std::fabs(overScroll_), height_ / HALF_NUMBER); in ApplyCurrentOffset()
129 return GreatOrEqual(std::fabs(overScroll_), height_ / HALF_NUMBER); in InMaxOverScroll()
H A Dtextpicker_column_pattern.cpp55 const int32_t HALF_NUMBER = 2; variable
110 auto midIndex = showCount / HALF_NUMBER; in OnModifyDone()
933 auto midIndex = GetShowOptionCount() / HALF_NUMBER; in GetOverScrollDeltaIndex()
1133 int32_t middleIndex = static_cast<int32_t>(GetShowOptionCount()) / HALF_NUMBER; in HandleDragEnd()
1136 auto shiftThreshold = shiftDistance / HALF_NUMBER; in HandleDragEnd()
1217 auto midIndex = GetShowOptionCount() / HALF_NUMBER; in ScrollOption()
1320 optionProperties_[nextIndex].fontheight / HALF_NUMBER; in GetSelectedDistance()
1504 auto midIndex = GetShowOptionCount() / HALF_NUMBER; in UpdateColumnChildPosition()
1684 int32_t middleIndex = static_cast<int32_t>(GetShowOptionCount()) / HALF_NUMBER; in OnAroundButtonClick()
1722 int32_t middleIndex = static_cast<int32_t>(GetShowOptionCount()) / HALF_NUMBER; in PlayResetAnimation()
[all …]