File tree 1 file changed +2
-2
lines changed
Example/FlabbyTable/FlabbyTable
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N
155
155
CGPoint newOffset = [[change objectForKey: NSKeyValueChangeNewKey ] CGPointValue ];
156
156
CGPoint oldOffset = [[change objectForKey: NSKeyValueChangeOldKey ] CGPointValue ];
157
157
CGFloat verticalVelocity = oldOffset.y - newOffset.y ;
158
- if (fabsf (verticalVelocity - _previousVerticalVelocity)>CGFLOAT_MIN) {
158
+ if (fabs (verticalVelocity - _previousVerticalVelocity)>CGFLOAT_MIN) {
159
159
if (verticalVelocity/newOffset.y > 1.05 || verticalVelocity/newOffset.y < 0.95 ) {
160
160
BOOL didScrollToTop = newOffset.y == -_tableView.contentInset .top ;
161
161
if (didScrollToTop) {
@@ -206,4 +206,4 @@ - (void)applyFlabbinessForVerticalVelocity:(CGFloat)verticalVelocity{
206
206
}
207
207
}
208
208
209
- @end
209
+ @end
You can’t perform that action at this time.
0 commit comments