-
public class OnScrollDispatchHelper
Android has a bug where onScrollChanged is called twice per frame with the same params during flings. We hack around that here by trying to detect that duplicate call and not dispatch it. See https://code.google.com/p/android/issues/detail?id=39473
-
-
Method Summary
Modifier and Type Method Description boolean
onScrollChanged(int x, int y)
Call from a ScrollView in onScrollChanged, returns true if this onScrollChanged is legit (not aduplicate) and should be dispatched. float
getXFlingVelocity()
float
getYFlingVelocity()
-
-
Method Detail
-
onScrollChanged
boolean onScrollChanged(int x, int y)
Call from a ScrollView in onScrollChanged, returns true if this onScrollChanged is legit (not aduplicate) and should be dispatched.
-
getXFlingVelocity
float getXFlingVelocity()
-
getYFlingVelocity
float getYFlingVelocity()
-
-
-
-