-
public class VelocityHelper
This Class helps to calculate the velocity for all ScrollView. The x and y velocity will later on send to ReactScrollViewHelper for further use.
-
-
Method Summary
Modifier and Type Method Description void
calculateVelocity(MotionEvent ev)
Call from a ScrollView in onTouchEvent. float
getXVelocity()
float
getYVelocity()
-
-
Method Detail
-
calculateVelocity
void calculateVelocity(MotionEvent ev)
Call from a ScrollView in onTouchEvent. Calculating the velocity for END_DRAG movement and sendthem back to react ScrollResponder.js
-
getXVelocity
float getXVelocity()
-
getYVelocity
float getYVelocity()
-
-
-
-