marinofaggiana 3 năm trước cách đây
mục cha
commit
998aa82090
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      iOSClient/Media/NCMedia.swift

+ 5 - 0
iOSClient/Media/NCMedia.swift

@@ -690,6 +690,11 @@ extension NCMedia: UIScrollViewDelegate {
             searchOldMedia()
         }
     }
+    
+    func scrollViewDidScrollToTop(_ scrollView: UIScrollView) {
+        let y = view.safeAreaInsets.top
+        scrollView.contentOffset.y = -y
+    }
 }
 
 // MARK: - Media Command View