Searched refs:dPos (Results 1 – 2 of 2) sorted by relevance
672 float dPos; in onTouchEvent() local674 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()678 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()681 dPos = -dPos; in onTouchEvent()683 final float newPos = constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()
956 float dPos; in onTouchEvent() local958 dPos = thumbScrollOffset / thumbScrollRange; in onTouchEvent()962 dPos = thumbScrollOffset > 0 ? 1 : -1; in onTouchEvent()965 dPos = -dPos; in onTouchEvent()967 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1); in onTouchEvent()