frictionFactor method

double frictionFactor(
  1. double overscrollFraction
)

计算摩擦系数

参数:

  • overscrollFraction:超出滚动范围的比例
  • 返回值:摩擦系数

Implementation

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