Documentation fix: dx vs. x0
Summary: > What existing problem does the pull request solve? Purely a documentation/example error. Was misled/wasted time debugging because of this issue. Description: `dx`/`dy` are zero in onPanResponderGrant, not `x0`/`y0`. `x0`/`y0` will be the coordinates relative to the granted element, which are rarely zero. Closes https://github.com/facebook/react-native/pull/9984 Differential Revision: D4001603 Pulled By: hramos fbshipit-source-id: 32580795f62394585ccfb8f9a2ae65b0b72add69
This commit is contained in:
parent
9a8b5fcf61
commit
d1f8add4d0
|
@ -80,7 +80,7 @@ const currentCentroidY = TouchHistoryMath.currentCentroidY;
|
|||
* // The guesture has started. Show visual feedback so the user knows
|
||||
* // what is happening!
|
||||
*
|
||||
* // gestureState.{x,y}0 will be set to zero now
|
||||
* // gestureState.d{x,y} will be set to zero now
|
||||
* },
|
||||
* onPanResponderMove: (evt, gestureState) => {
|
||||
* // The most recent move distance is gestureState.move{X,Y}
|
||||
|
|
Loading…
Reference in New Issue