UI improvements

This commit is contained in:
Ilya Laktyushin committed 2023-03-20 15:24:40 +04:00
1 parent 7269255d00
commit c02f796791
12 files changed
+163 -73

No files matched your search

@@ -1344,6 +1344,12 @@ public final class SparseItemGrid: ASDisplayNode {
self.pinchRecognizer?.isEnabled = self.pinchEnabled
}
}
public var isScrollEnabled: Bool = true {
didSet {
self.currentViewport?.scrollView.isScrollEnabled = self.isScrollEnabled
}
}
public init(theme: PresentationTheme, initialZoomLevel: ZoomLevel? = nil) {
self.theme = theme