yuyakaido / CardStackView

📱Tinder like swipeable card view for Android
Apache License 2.0
2.36k stars 448 forks source link

position causes data error #298

Open JHwangxiaotian opened 4 years ago

JHwangxiaotian commented 4 years ago

I used it in a production .But produced a very common and very serious error

My data is dynamic,and click next or previous request new data, When the data request is successful,update list。then auto call cardStackView.swipe() or cardStackView.rewind(). New data is updated based on old data.

Performing the same operation many times will cause an error in position.. manager.getTopPosition() is error,,

Most of them appear when you click Next all the time, then suddenly click Previous,getTopPosition is next position instead of current position 。。。

I can hardly reproduce it, but this problem does exist in the production APP。

I hope to be helped