|
@@ -291,7 +291,7 @@ extension KMPDFThumbnailView: NSCollectionViewDelegate {
|
|
|
return .move
|
|
|
}
|
|
|
|
|
|
- return NSDragOperation.generic
|
|
|
+ return NSDragOperation(rawValue: 0)
|
|
|
}
|
|
|
|
|
|
func collectionView(_ collectionView: NSCollectionView, acceptDrop draggingInfo: NSDraggingInfo, indexPath: IndexPath, dropOperation: NSCollectionView.DropOperation) -> Bool {
|
|
@@ -301,6 +301,7 @@ extension KMPDFThumbnailView: NSCollectionViewDelegate {
|
|
|
let pboard = draggingInfo.draggingPasteboard
|
|
|
if (pboard.availableType(from: [NSPasteboard.PasteboardType(rawValue: "localForDraggedTypes")]) != nil) {
|
|
|
let dragIndexPath = self.dragedIndexPaths.first
|
|
|
+ self.dragedIndexPaths.removeAll()
|
|
|
if (dragIndexPath == nil) {
|
|
|
return false
|
|
|
}
|