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
Hi @thiagoperes , when I use IDMPhotoBrowser a high quality image, I get a problem with double tap to zoom out and zoom in, please help!
Example image url: https://m.media-amazon.com/images/G/01/Shopbop/p/prod/products/tspor/tspor301691075a/tspor301691075a_q6_2-0.jpg
- (void)handleDoubleTap:(CGPoint)touchPoint { // Cancel any single tap handling [NSObject cancelPreviousPerformRequestsWithTarget:_photoBrowser]; // Zoom if (self.zoomScale == self.maximumDoubleTapZoomScale) { // Zoom out [self setZoomScale:self.minimumZoomScale animated:YES]; } else { // Zoom in CGSize targetSize = CGSizeMake(self.frame.size.width / self.maximumDoubleTapZoomScale, self.frame.size.height / self.maximumDoubleTapZoomScale); CGPoint targetPoint = CGPointMake(touchPoint.x - targetSize.width / 2, touchPoint.y - targetSize.height / 2); [self zoomToRect:CGRectMake(targetPoint.x, targetPoint.y, targetSize.width, targetSize.height) animated:YES]; } // Delay controls [_photoBrowser hideControlsAfterDelay]; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi @thiagoperes , when I use IDMPhotoBrowser a high quality image, I get a problem with double tap to zoom out and zoom in, please help!
Example image url: https://m.media-amazon.com/images/G/01/Shopbop/p/prod/products/tspor/tspor301691075a/tspor301691075a_q6_2-0.jpg
The text was updated successfully, but these errors were encountered: