mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove interactions and gesture recognizers from recycled section headers. Issue #1432
This commit is contained in:
@@ -211,10 +211,12 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||
headerView.isLastSection = false
|
||||
}
|
||||
|
||||
headerView.gestureRecognizers?.removeAll()
|
||||
let tap = UITapGestureRecognizer(target: self, action:#selector(self.toggleSectionHeader(_:)))
|
||||
headerView.addGestureRecognizer(tap)
|
||||
|
||||
if section != 0 {
|
||||
headerView.interactions.removeAll()
|
||||
headerView.addInteraction(UIContextMenuInteraction(delegate: self))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user