Closed pavel-krusek closed 9 years ago
That is brilliant, thanks - amazing timing - I found I had a problem with this last night and settled down this morning to find a solution, and here it is, you've fixed it!
Cool, I'll throw this on the pile of bugs I need to address when I have time (at the current rate sometime in 2037 :stuck_out_tongue_closed_eyes:)
Addressed in v1.2.0.
Addressed in v1.2.0
Translation is often == (0,0), so it's not precise - cell sometimes not move. The (0,0) problem is not apparent when velocityInView: is used instead of translationInView.
Current code: CGPoint currentPoint = [recognizer translationInView:self.myContentView]; //Check what direction the swipe is moving by checking the translation BOOL movingHorizontally = fabsf(self.panStartPoint.y) < fabsf(self.panStartPoint.x);
Fix: CGPoint movePoint = [recognizer velocityInView:self.myContentView]; BOOL movingHorizontally = fabsf(movePoint.y) < fabsf(movePoint.x);