|
@@ -561,7 +561,7 @@ class KMPDFThumbViewBaseController: KMBaseViewController {
|
|
|
self.thumbnailView.collectionView.animator().scrollToItems(at: indexpaths, scrollPosition: .top)
|
|
|
}
|
|
|
} else {
|
|
|
- let index = (self.thumbnailView.collectionView.selectionIndexes).last ?? Int(self.thumbnailView.document?.pageCount ?? 0)
|
|
|
+ let index = ((self.thumbnailView.collectionView.selectionIndexes).last ?? Int(self.thumbnailView.document?.pageCount ?? 0)) + 1
|
|
|
debugPrint("不是同一个document")
|
|
|
let url = URL(fileURLWithPath: KMThumbnailManager.manager.tempCopyFilePath)
|
|
|
// self.thumbnailView(thumbanView: self.thumbnailView, didDragAddFiles: [url], indexpath: NSIndexPath(forItem: index, inSection: 0) as IndexPath)
|