diff --git a/src/components/transitionable.js b/src/components/transitionable.js index 66021391e..da22e0fcc 100644 --- a/src/components/transitionable.js +++ b/src/components/transitionable.js @@ -35,9 +35,9 @@ const Transitionable = function (target) { }, transitionDirection() { - const { slideIndex, lastSlide } = this.props; + const { slideIndex, lastSlideIndex } = this.props; const slide = this.context.store.getState().route.slide || 0; - return this.state.reverse ? slideIndex > slide : slideIndex > lastSlide; + return this.state.reverse ? slideIndex > slide : slideIndex > lastSlideIndex; }, getTransitionStyles() {