marinofaggiana 5 년 전
부모
커밋
5f05e06b4a
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      iOSClient/Viewer/NCViewerImage/NCViewerImageContentView.swift
  2. 0 1
      iOSClient/Viewer/NCViewerPDF/NCViewerPDFSearch.swift

+ 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)