We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a2b842 + 590a8bd commit 914e36aCopy full SHA for 914e36a
NAMapKit/NAMapView.m
@@ -128,7 +128,7 @@ - (void)updateContentOffsetToCenterPoint:(CGPoint)point animated:(BOOL)animate
128
129
- (CGPoint)zoomRelativePoint:(CGPoint)point
130
{
131
- BOOL hasContentSize = fabsf(self.originalSize.width) > 0 && fabsf(self.originalSize.height) > 0;
+ BOOL hasContentSize = ABS(self.originalSize.width) > 0 && ABS(self.originalSize.height) > 0;
132
NSAssert(hasContentSize, @"originalSize dimension is zero, will result in NaN in returned value.");
133
134
CGFloat x = (self.contentSize.width / self.originalSize.width) * point.x;
0 commit comments