Onfling Parameters:
E1 The first down motion event, that started the fling.
E2 The move motion event triggered the current onfling.
Velocityx the velocity of this fling measured in pixels per second along the X axis.
Velocityy the velocity of this fling measured in pixels per second along the Y axis.
Onscroll Parameters:
E1 The first down motion event, that started the scrolling.
E2 The move motion event triggered the current onscroll.
Distancex the distance along the X axis that had been scrolled since the last call to Onscroll. This is not the distance between E1 and E2. Distancey the distance along the Y axis that had been scrolled since the last call to Onscroll. This is not the distance between E1 and E2.
From the two parameters can be seen onfling emphasis on the speed of sliding, suitable for responding to the speed of the demand for events
Onscroll emphasizes the sliding distance, which is suitable for responding to events that require distance
The difference between onfling and onscroll in the callback method of gesture detection