marinofaggiana 5 年 前
コミット
5f05e06b4a

+ 1 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImageContentView.swift

@@ -242,7 +242,7 @@ extension NCViewerImageContentView {
 
         let isImageCoveringScreen = imageView.frame.size.width > bounds.size.width &&
             imageView.frame.size.height > bounds.size.height
-        let zoomTo = (isImageCoveringScreen || zoomScale == maximumZoomScale/2) ? minimumZoomScale : maximumZoomScale/2
+        let zoomTo = (isImageCoveringScreen || zoomScale == maximumZoomScale/3) ? minimumZoomScale : maximumZoomScale/3
 
         guard zoomTo != zoomScale else {
             return

+ 0 - 1
iOSClient/Viewer/NCViewerPDF/NCViewerPDFSearch.swift

@@ -94,7 +94,6 @@ class NCViewerPDFSearch: UITableViewController, UISearchBarDelegate, PDFDocument
         
         let nsRange = NSString(string: extendSelection.string!).range(of: pdfSelection.string!, options: String.CompareOptions.caseInsensitive)
         if nsRange.location != NSNotFound {
-            
             let attributedSubString = NSAttributedString.init(string: NSString(string: extendSelection.string!).substring(with: nsRange), attributes: [NSAttributedString.Key.font : UIFont.boldSystemFont(ofSize: 17)])
             let attributedString = NSMutableAttributedString.init(string: extendSelection.string!)
             attributedString.replaceCharacters(in: nsRange, with: attributedSubString)