File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1212#import " UIImage+JTSImageEffects.h"
1313#import " UIApplication+JTSImageViewController.h"
1414
15+ CG_INLINE CGFLOAT_TYPE JTSImageFloatAbs (CGFLOAT_TYPE aFloat) {
16+ #if CGFLOAT_IS_DOUBLE
17+ return fabs (aFloat);
18+ #else
19+ return fabsf (aFloat);
20+ #endif
21+ }
22+
1523// /--------------------------------------------------------------------------------------------------------------------
1624// / Definitions
1725// /--------------------------------------------------------------------------------------------------------------------
@@ -1594,7 +1602,7 @@ - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL
15941602 }
15951603
15961604 CGPoint velocity = [scrollView.panGestureRecognizer velocityInView: scrollView.panGestureRecognizer.view];
1597- if (scrollView.zoomScale == 1 && (fabsf (velocity.x ) > 1600 || fabsf (velocity.y ) > 1600 ) ) {
1605+ if (scrollView.zoomScale == 1 && (JTSImageFloatAbs (velocity.x ) > 1600 || JTSImageFloatAbs (velocity.y ) > 1600 ) ) {
15981606 [self dismiss: YES ];
15991607 }
16001608}
You can’t perform that action at this time.
0 commit comments