Searched refs:dragDistanceY (Results 1 - 6 of 6) sorted by relevance
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_abstract_scroll.cpp | 233 int16_t dragDistanceY = 0; in DragThrowAnimator() local 235 CalculateDragDistance(currentPos, lastPos, dragDirection, dragDistanceX, dragDistanceY); in DragThrowAnimator() 238 CalculateReboundDistance(dragDistanceX, dragDistanceY); in DragThrowAnimator() 242 FixDistance(dragDistanceX, dragDistanceY); in DragThrowAnimator() 245 StartAnimator(dragDistanceX, dragDistanceY); in DragThrowAnimator() 249 void UIAbstractScroll::StartAnimator(int16_t dragDistanceX, int16_t dragDistanceY) in StartAnimator() argument 251 int16_t dragTimes = MATH_MAX(MATH_ABS(dragDistanceX), MATH_ABS(dragDistanceY)) / DRAG_TIMES_COEFFICIENT; in StartAnimator() 257 animatorCallback_.SetDragEndValue(dragDistanceX, dragDistanceY); in StartAnimator() 266 int16_t& dragDistanceY) in CalculateDragDistance() 269 dragDistanceY in CalculateDragDistance() 262 CalculateDragDistance(Point currentPos, Point lastPos, uint8_t dragDirection, int16_t& dragDistanceX, int16_t& dragDistanceY) CalculateDragDistance() argument [all...] |
H A D | ui_list.cpp | 827 void UIList::CalculateReboundDistance(int16_t& dragDistanceX, int16_t& dragDistanceY) in CalculateReboundDistance() argument 841 if ((dragDistanceY + top) > (scrollBlankSize_ + reboundSize_)) { in CalculateReboundDistance() 842 dragDistanceY = 0; in CalculateReboundDistance() 844 dragDistanceY += scrollBlankSize_ - (top + dragDistanceY); in CalculateReboundDistance() 847 if ((dragDistanceY + bottom) < (scrollHeight - scrollBlankSize_ - reboundSize_ - 1)) { in CalculateReboundDistance() 848 dragDistanceY = 0; in CalculateReboundDistance() 850 dragDistanceY += scrollHeight - scrollBlankSize_ - 1 - (bottom + dragDistanceY); in CalculateReboundDistance()
|
H A D | ui_scroll_view.cpp | 282 void UIScrollView::CalculateReboundDistance(int16_t& dragDistanceX, int16_t& dragDistanceY) in CalculateReboundDistance() argument 292 dragDistanceY = scrollBlankSize_ - top; in CalculateReboundDistance() 294 dragDistanceY = scrollHeight - scrollBlankSize_ - bottom - 1; in CalculateReboundDistance()
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_abstract_scroll.h | 510 int16_t& dragDistanceY); 512 void StartAnimator(int16_t dragDistanceX, int16_t dragDistanceY); 514 virtual void CalculateReboundDistance(int16_t& dragDistanceX, int16_t& dragDistanceY) {} in CalculateReboundDistance() argument
|
H A D | ui_scroll_view.h | 245 void CalculateReboundDistance(int16_t& dragDistanceX, int16_t& dragDistanceY) override;
|
H A D | ui_list.h | 494 void CalculateReboundDistance(int16_t& dragDistanceX, int16_t& dragDistanceY) override;
|
Completed in 6 milliseconds