react-swipeable-views icon indicating copy to clipboard operation
react-swipeable-views copied to clipboard

Cannot swipe backward when using virtualize HOC with onChangeIndex and onTransitionEnd

Open raymanound-zz opened this issue 7 years ago • 0 comments

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.

image

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

raymanound-zz avatar Jan 23 '18 13:01 raymanound-zz