Searched refs:maxScrollDistance (Results 1 – 2 of 2) sorted by relevance
324 float maxScrollDistance = 0.15f * size; in setSwipeAmount() local326 amount = amount > 0 ? maxScrollDistance : -maxScrollDistance; in setSwipeAmount()328 amount = maxScrollDistance * (float) Math.sin((amount/size)*(Math.PI/2)); in setSwipeAmount()
425 float maxScrollDistance = 0.15f * size; in onTouchEvent() local427 delta = delta > 0 ? maxScrollDistance : -maxScrollDistance; in onTouchEvent()429 delta = maxScrollDistance * (float) Math.sin((delta/size)*(Math.PI/2)); in onTouchEvent()