Home
last modified time | relevance | path

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

/foundation/graphic/ui/frameworks/components/
Dui_abstract_scroll.cpp377 int16_t lastRotateLen = GetMaxRotate(); in OnRotateEndEvent() local
379 …dir = (lastRotateLen >= 0) ? DragEvent::DIRECTION_LEFT_TO_RIGHT : DragEvent::DIRECTION_RIGHT_TO_LE… in OnRotateEndEvent()
381 …dir = (lastRotateLen >= 0) ? DragEvent::DIRECTION_TOP_TO_BOTTOM : DragEvent::DIRECTION_BOTTOM_TO_T… in OnRotateEndEvent()
383 bool triggerAnimator = (MATH_ABS(lastRotateLen) >= rotateThrowthreshold_); in OnRotateEndEvent()
387 current = {lastRotateLen, 0}; in OnRotateEndEvent()
389 current = {0, lastRotateLen}; in OnRotateEndEvent()
Dui_swipe_view.cpp217 int16_t lastRotateLen = GetMaxRotate(); in OnRotateEndEvent() local
219 …dir = (lastRotateLen >= 0) ? DragEvent::DIRECTION_LEFT_TO_RIGHT : DragEvent::DIRECTION_RIGHT_TO_LE… in OnRotateEndEvent()
221 …dir = (lastRotateLen >= 0) ? DragEvent::DIRECTION_TOP_TO_BOTTOM : DragEvent::DIRECTION_BOTTOM_TO_T… in OnRotateEndEvent()
224 RefreshCurrentViewByThrow(lastRotateLen, dir, &UIView::GetX, &UIView::GetWidthWithMargin); in OnRotateEndEvent()
226 RefreshCurrentViewByThrow(lastRotateLen, dir, &UIView::GetY, &UIView::GetHeightWithMargin); in OnRotateEndEvent()