refresher icon indicating copy to clipboard operation
refresher copied to clipboard

Quick pull will lead to refresh twice or more times.

Open Leaf585258 opened this issue 7 years ago • 7 comments

When I quickly pull the collectionView, the screen will refresh twice or more times. It seems that because the value of "loading" is not updated immediately. if (scrollView.isDragging == false && loading == false) { loading = true } These codes will be executed many times. Do you have a good method to solve it?

Thanks

Leaf585258 avatar Mar 21 '17 10:03 Leaf585258

Hey, sorry for late reply. It makes sense what are you saying. I will try to fix this when I have some time.

jcavar avatar Apr 11 '17 21:04 jcavar

Or actually I am not sure, I can't reproduce that right now. Is it maybe related to this issue: https://github.com/jcavar/refresher/issues/12 Otherwise, could you send me project where this reproduces?

jcavar avatar Apr 11 '17 22:04 jcavar

I had tried the methods mentioned in the issue #12, but it didn't solve the problem.

Leaf585258 avatar Apr 25 '17 08:04 Leaf585258

Is it possible to send project demo project that reproduces this issue?

jcavar avatar Apr 30 '17 10:04 jcavar

I am having the same problem. I don't have a demo but it is happening more often in iOS 11 using swift 4.

nevinjethmalani avatar Sep 26 '17 02:09 nevinjethmalani

If you could provide demo project, failing test case or some more detailed steps how to reproduce this that would be great. I don't understand why would this happen and I am not able to reproduce this myself.

jcavar avatar Oct 03 '17 15:10 jcavar

After some debug, this issue caused by: update scrollview's contentInset after added refresher to scrollview. Please ensure set contentInset before add refresher. Especially, if you add refresher in a common super viewController, double double check 🤓. Sorry my poor english.

KevinGong2013 avatar Nov 28 '17 07:11 KevinGong2013