Skip to content

Commit f607331

Browse files
philipphenkelkenwheeler
authored andcommitted
Fix direction of slide transition (#330)
Defect since introduction of SlideSet in 49b1917
1 parent 67b1ad1 commit f607331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/transitionable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ const Transitionable = function (target) {
3535
},
3636

3737
transitionDirection() {
38-
const { slideIndex, lastSlide } = this.props;
38+
const { slideIndex, lastSlideIndex } = this.props;
3939
const slide = this.context.store.getState().route.slide || 0;
40-
return this.state.reverse ? slideIndex > slide : slideIndex > lastSlide;
40+
return this.state.reverse ? slideIndex > slide : slideIndex > lastSlideIndex;
4141
},
4242

4343
getTransitionStyles() {

0 commit comments

Comments
 (0)