Searched refs:newTranslation (Results 1 – 2 of 2) sorted by relevance
315 val newTranslation: Float in onTouch() constant317 newTranslation = 0.0f in onTouch()319 newTranslation = getMaxTranslation() * Math.signum(currentTranslation) in onTouch()329 newTranslation, startVelocity = 0.0f, config = translationConfig).start() in onTouch()330 scrollView.animationTargetX = newTranslation in onTouch()359 var newTranslation = currentTranslation - distanceX in onScroll() variable360 val absTranslation = Math.abs(newTranslation) in onScroll()369 newTranslation = currentTranslation - distanceX * RUBBERBAND_FACTOR in onScroll()372 newTranslation = Math.signum(newTranslation) * (getMaxTranslation() + in onScroll()378 if (Math.signum(newTranslation) != Math.signum(currentTranslation) && in onScroll()[all …]
622 float newTranslation = Math.max(ambientState.getTopPadding() in clampHunToTop() local624 childState.height = (int) Math.max(childState.height - (newTranslation in clampHunToTop()626 childState.yTranslation = newTranslation; in clampHunToTop()631 float newTranslation; in clampHunToMaxTranslation() local637 newTranslation = Math.min(childState.yTranslation, bottomPosition); in clampHunToMaxTranslation()639 - newTranslation); in clampHunToMaxTranslation()640 childState.yTranslation = newTranslation; in clampHunToMaxTranslation()