Browse Source

fix Peek & Pop errata location

Marino Faggiana 7 years ago
parent
commit
42c4f9d282
1 changed files with 2 additions and 1 deletions
  1. 2 1
      iOSClient/Main/CCMain.m

+ 2 - 1
iOSClient/Main/CCMain.m

@@ -955,7 +955,8 @@
 
 - (UIViewController *)previewingContext:(id<UIViewControllerPreviewing>)previewingContext viewControllerForLocation:(CGPoint)location
 {
-    NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:location];
+    CGPoint convertedLocation = [self.view convertPoint:location toView:self.tableView];
+    NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:convertedLocation];
     tableMetadata *metadata = [self getMetadataFromSectionDataSource:indexPath];
     
     if (metadata.thumbnailExists && _metadataFolder.e2eEncrypted == NO) {