KvadrantOverscroll

constructor(scope: CoroutineScope, maxOffset: Float = DEFAULT_MAX_OFFSET, resistance: Float = DEFAULT_RESISTANCE, flingReference: Float = DEFAULT_FLING_REFERENCE)

Parameters

maxOffset

how far the content travels past the boundary at the limit, as a fraction of the viewport. Ours.

resistance

how much finger travel it takes to reach that limit, as a multiple of the viewport. Ours, and the strongest lever on how the effect feels — see KvadrantOverscroll.DEFAULT_RESISTANCE, which was raised fourfold once a diagram showed a flick spending the whole of it in two frames.

flingReference

the speed, in viewports per second, at which a fling arriving at the end spends about two thirds of what is available. Ours; see DEFAULT_FLING_REFERENCE.