From 6e14c8b87407ce346671f14982be88ed48a1fb5d Mon Sep 17 00:00:00 2001 From: Philipp Henkel Date: Wed, 14 Jun 2017 00:13:29 +0200 Subject: [PATCH] Fix direction of slide transition Defect since introduction of SlideSet in 49b191723591f8aa4f18004a3268256298cde720 --- src/components/transitionable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {