s/onGestureFinish/onGestureEnd
This commit is contained in:
parent
6c74c1d85c
commit
cbae912b7f
|
@ -593,7 +593,7 @@ class StackViewLayout extends React.Component {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (gestureVelocity > 50) {
|
if (gestureVelocity > 50) {
|
||||||
this.props.onGestureFinish && this.props.onGestureFinish();
|
this.props.onGestureEnd && this.props.onGestureEnd();
|
||||||
this._goBack(immediateIndex, goBackDuration);
|
this._goBack(immediateIndex, goBackDuration);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -601,7 +601,7 @@ class StackViewLayout extends React.Component {
|
||||||
// Then filter based on the distance the screen was moved. Over a third of the way swiped,
|
// Then filter based on the distance the screen was moved. Over a third of the way swiped,
|
||||||
// and the back will happen.
|
// and the back will happen.
|
||||||
if (value <= index - POSITION_THRESHOLD) {
|
if (value <= index - POSITION_THRESHOLD) {
|
||||||
this.props.onGestureFinish && this.props.onGestureFinish();
|
this.props.onGestureEnd && this.props.onGestureEnd();
|
||||||
this._goBack(immediateIndex, goBackDuration);
|
this._goBack(immediateIndex, goBackDuration);
|
||||||
} else {
|
} else {
|
||||||
this.props.onGestureCanceled && this.props.onGestureCanceled();
|
this.props.onGestureCanceled && this.props.onGestureCanceled();
|
||||||
|
@ -644,7 +644,7 @@ class StackViewLayout extends React.Component {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (gestureVelocity > 50) {
|
if (gestureVelocity > 50) {
|
||||||
this.props.onGestureFinish && this.props.onGestureFinish();
|
this.props.onGestureEnd && this.props.onGestureEnd();
|
||||||
this._goBack(immediateIndex, goBackDuration);
|
this._goBack(immediateIndex, goBackDuration);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -652,7 +652,7 @@ class StackViewLayout extends React.Component {
|
||||||
// Then filter based on the distance the screen was moved. Over a third of the way swiped,
|
// Then filter based on the distance the screen was moved. Over a third of the way swiped,
|
||||||
// and the back will happen.
|
// and the back will happen.
|
||||||
if (value <= index - POSITION_THRESHOLD) {
|
if (value <= index - POSITION_THRESHOLD) {
|
||||||
this.props.onGestureFinish && this.props.onGestureFinish();
|
this.props.onGestureEnd && this.props.onGestureEnd();
|
||||||
this._goBack(immediateIndex, goBackDuration);
|
this._goBack(immediateIndex, goBackDuration);
|
||||||
} else {
|
} else {
|
||||||
this.props.onGestureCanceled && this.props.onGestureCanceled();
|
this.props.onGestureCanceled && this.props.onGestureCanceled();
|
||||||
|
|
Loading…
Reference in New Issue