[MAdMan] Possibly fix "Cannot find breadcrumb interpolators for -1"
This commit is contained in:
parent
36c33b4a60
commit
228dc5f936
|
@ -549,12 +549,15 @@ var Navigator = React.createClass({
|
||||||
this.spring.getCurrentValue()
|
this.spring.getCurrentValue()
|
||||||
);
|
);
|
||||||
} else if (this.state.activeGesture != null) {
|
} else if (this.state.activeGesture != null) {
|
||||||
|
var presentedToIndex = this.state.presentedIndex + this._deltaForGestureAction(this.state.activeGesture);
|
||||||
|
if (presentedToIndex > -1) {
|
||||||
this._transitionBetween(
|
this._transitionBetween(
|
||||||
this.state.presentedIndex,
|
this.state.presentedIndex,
|
||||||
this.state.presentedIndex + this._deltaForGestureAction(this.state.activeGesture),
|
presentedToIndex,
|
||||||
this.spring.getCurrentValue()
|
this.spring.getCurrentValue()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue