mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Cap the possible destination index used during Feed moves
This commit is contained in:
@@ -269,7 +269,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||
if proposedDestinationIndexPath.section == 0 {
|
||||
return IndexPath(row: 0, section: 1)
|
||||
}
|
||||
return proposedDestinationIndexPath
|
||||
return coordinator.cappedIndexPath(proposedDestinationIndexPath)
|
||||
}()
|
||||
|
||||
guard let draggedNode = coordinator.nodeFor(sourceIndexPath), let destNode = coordinator.nodeFor(destIndexPath), let parentNode = destNode.parent else {
|
||||
|
||||
Reference in New Issue
Block a user