frictionFactor method

double frictionFactor(
  1. double overscrollFraction
)

Increase friction for scrolling in out-of-bound areas.

Implementation

double frictionFactor(double overscrollFraction) =>
    0.12 * math.pow(1 - overscrollFraction, 2);