feat: improve epub reader controls and annotations
This commit is contained in:
@@ -11,8 +11,11 @@ extension RDEpubReaderView: UICollectionViewDataSource, RDEpubReaderFlowLayoutDe
|
||||
let reusableView = cell.containerView ?? preloadedView
|
||||
let contentView = contentViewForPage(indexPath.row, reusableView: reusableView)
|
||||
(contentView as? RDEpubReaderPageVisibilityHandling)?
|
||||
.readerPageVisibilityDidChange(isVisible: isReaderPageVisible(indexPath.row))
|
||||
.readerPageVisibilityDidChange(isVisible: false)
|
||||
cell.containerView = contentView
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.updatePageContentVisibility()
|
||||
}
|
||||
|
||||
if pageDirection == .rightToLeft && currentDisplayType != .verticalScroll {
|
||||
cell.contentView.transform = CGAffineTransform(scaleX: -1, y: 1)
|
||||
|
||||
Reference in New Issue
Block a user