voronianski / swipe-js-iso

Universal (a.k.a isomorphic) version of Swipe.js
https://www.npmjs.com/package/swipe-js-iso
MIT License
187 stars 57 forks source link

when i use two pictures ,callback has some problems #11

Closed heden9 closed 6 years ago

heden9 commented 7 years ago

when i use two pictures ,callback has some problems

Laslo89 commented 7 years ago

yeah, it has. It mainly duplicates the slideds, i think to simulate a valid continous sliding effect when continous===true. The issue is, it also uses 4 indexes and the user sees visually only 2 slides, but we have to work with an index of 4 suddenly. It seems wrong.

HwasungKim commented 6 years ago

I have the same issue. on React inspector, it shows that I have two child elements which is correctly intended to be, but then it shows 4 child elements are there on the real dom, regardlessly. My child elements are not just image slides, but complicated nested divs though.

wanpan9527 commented 6 years ago

So how to solve this problem?

postbird commented 4 years ago

same issue