react-swipeable-views
react-swipeable-views copied to clipboard
Cannot swipe backward when using virtualize HOC with onChangeIndex and onTransitionEnd
Current Behavior
While using virtualize HOC with onChangeIndex and onTransitionEnd callback at the same time, the slide cannot swipe backward by both touch/mouse move once the index reach overscanSlideAfter.
For example, if the overscanSlideAfter is 2, it cannot swipe backward once the index is -2. While It can still be forced to go backward by left arrow key if bindKeyboard is applied but keep creating infinite dom.

Steps to Reproduce (for bugs)
Can be reproduced by modify the virtualize demo
https://codesandbox.io/s/mzk40lyw7x
Your Environment
| Tech | Version |
|---|---|
| react-swipeable-views | ^0.12.12 |
| react-swipeable-views-utils | ^0.12.11 |
| React | ^16.2.0 |