Duplicated slides when using two slides
webeli opened this issue · 2 comments
webeli commented
Description
Hi, i noticed a bug in react-swipe that occures when i use two slides.
The amount of slides duplicates everytime there are two slides in place.
This bug makes it hard for me to highlight the current active slide since the index is wrong after it has gone over the second slide...
The image below has two slides but gets four rendered to the DOM.
Demo link
Image
You can test the bug here, just change the tree slides to two:
http://esnextb.in/?gist=8d9bf6bf17a4a3f779485e4baa6c3f26
Mikeks81 commented
experiencing the same behavior. Not that this is the right solution but this issue mentions a similar thing #129
voronianski commented
fixed in Swipe.js - voronianski/swipe-js-iso@7370415