|
|
@ -65,7 +65,7 @@ abstract class ScrollableChart : View, GestureDetector.OnGestureListener, Animat
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun onFling(
|
|
|
|
override fun onFling(
|
|
|
|
e1: MotionEvent,
|
|
|
|
e1: MotionEvent?,
|
|
|
|
e2: MotionEvent,
|
|
|
|
e2: MotionEvent,
|
|
|
|
velocityX: Float,
|
|
|
|
velocityX: Float,
|
|
|
|
velocityY: Float
|
|
|
|
velocityY: Float
|
|
|
@ -116,7 +116,7 @@ abstract class ScrollableChart : View, GestureDetector.OnGestureListener, Animat
|
|
|
|
return BundleSavedState(superState, bundle)
|
|
|
|
return BundleSavedState(superState, bundle)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
override fun onScroll(e1: MotionEvent, e2: MotionEvent, dx: Float, dy: Float): Boolean {
|
|
|
|
override fun onScroll(e1: MotionEvent?, e2: MotionEvent, dx: Float, dy: Float): Boolean {
|
|
|
|
var dx = dx
|
|
|
|
var dx = dx
|
|
|
|
if (scrollerBucketSize == 0) return false
|
|
|
|
if (scrollerBucketSize == 0) return false
|
|
|
|
if (abs(dx) > abs(dy)) {
|
|
|
|
if (abs(dx) > abs(dy)) {
|
|
|
|