FrictionConfig.byZone constructor

const FrictionConfig.byZone({
  1. required Friction inDisplay,
  2. required Friction pastDisplay,
})

Group by zone: inDisplay applies to both extending and retracting while the rect's edge is inside the display; pastDisplay applies to both once the edge has crossed.

Implementation

const FrictionConfig.byZone({
  required Friction inDisplay,
  required Friction pastDisplay,
})  : extending = inDisplay,
      retracting = inDisplay,
      extendingPastDisplay = pastDisplay,
      retractingPastDisplay = pastDisplay;