We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The comparison here is potentially wrong:
if (self.scalingImageView.zoomScale >= self.scalingImageView.maximumZoomScale) { newZoomScale = self.scalingImageView.minimumZoomScale; }
In fact, I've just encountered this problem. I've changed this into:
if (self.scalingImageView.zoomScale >= self.scalingImageView.maximumZoomScale || ABS(self.scalingImageView.zoomScale - self.scalingImageView.maximumZoomScale) <= FLT_EPSILON) { newZoomScale = self.scalingImageView.minimumZoomScale; }
The text was updated successfully, but these errors were encountered:
Avoid testing floats for equality in PhotoViewController
86ae16f
closes #133
test floats for equality via ABS(-) method on PhotoViewController
0395212
cdzombak
No branches or pull requests
The comparison here is potentially wrong:
In fact, I've just encountered this problem. I've changed this into:
The text was updated successfully, but these errors were encountered: