mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-27 18:12:30 +01:00
Disable animations on iOS for TimelineItem status changes
This commit is contained in:
parent
206683315a
commit
479562b47f
@ -120,13 +120,14 @@ struct TimelineView: View {
|
||||
.onReceive(timelineModel.articleStatusChangePublisher!) { articleIDs in
|
||||
articleIDs.forEach { articleID in
|
||||
if let position = timelineItems.index[articleID] {
|
||||
if timelineItems.items[position].isReadOnly {
|
||||
withAnimation {
|
||||
timelineItems.items[position].updateStatus()
|
||||
}
|
||||
} else {
|
||||
// This will trigger a deselect on iPhones and iPads, so we will disable it for now
|
||||
// if timelineItems.items[position].isReadOnly {
|
||||
// withAnimation {
|
||||
// timelineItems.items[position].updateStatus()
|
||||
// }
|
||||
// } else {
|
||||
timelineItems.items[position].updateStatus()
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user