Commit dd109b6
committed
Fix "cell is slipping away under finger"-bug by rounding
Setting a non-integral value to `self.collectionView.contentOffset` will get rounded automatically anyway but `self.currentViewCenter` and `self.currentView.center` won't and that's where the values slowly diverge if the speed is not dividable without rest by 60 (the default fps). The default speed is 300 but bumping it up to e.g. 500 for faster scrolling caused the bug to happen.distance to the an integer.1 parent f3033c1 commit dd109b6
File tree
1 file changed
+3
-1
lines changed- LXReorderableCollectionViewFlowLayout
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
| |||
0 commit comments