mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-07 17:37:34 +08:00
Summary: 1. Calculated the fling slow down velocity using OnScrollDispatchHelper 2. Calculated the END_DRAG velocity using velocity tracker in VelocityHelper. 3. Change the interface of ReactScrollViewHelper to pass velocity on x & y. Pending future work: Calculate the velocity of BEGIN_DRAG, MOMENTUM_BEGIN and MOMENTUM_END Add threshold in ScrollResponder.js instead of checking x & y velocity equal zero Reviewed By: achen1 Differential Revision: D5238126 fbshipit-source-id: 35fb70dda8ab66cd152413cb9c1c041354f1c061