visionOS: Don't highlight non-selectable list rows
This commit is contained in:
parent
9d01bbabd7
commit
19db78e352
|
@ -385,6 +385,12 @@ extension ConversationCollectionViewController: UICollectionViewDelegate {
|
|||
func collectionView(_ collectionView: UICollectionView, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating) {
|
||||
MenuPreviewHelper.willPerformPreviewAction(animator: animator, presenter: self)
|
||||
}
|
||||
|
||||
#if os(visionOS)
|
||||
func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool {
|
||||
return self.collectionView(collectionView, shouldSelectItemAt: indexPath)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
extension ConversationCollectionViewController: UICollectionViewDragDelegate {
|
||||
|
|
|
@ -677,6 +677,12 @@ extension NotificationsCollectionViewController: UICollectionViewDelegate {
|
|||
reconfigureVisibleCells()
|
||||
}
|
||||
}
|
||||
|
||||
#if os(visionOS)
|
||||
func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool {
|
||||
return self.collectionView(collectionView, shouldSelectItemAt: indexPath)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
extension NotificationsCollectionViewController: UICollectionViewDragDelegate {
|
||||
|
|
|
@ -628,6 +628,12 @@ extension ProfileStatusesViewController: UICollectionViewDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
#if os(visionOS)
|
||||
func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool {
|
||||
return self.collectionView(collectionView, shouldSelectItemAt: indexPath)
|
||||
}
|
||||
#endif
|
||||
|
||||
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
|
||||
if reconfigureVisibleItemsOnEndDecelerating {
|
||||
reconfigureVisibleItemsOnEndDecelerating = false
|
||||
|
|
|
@ -202,6 +202,12 @@ extension StatusEditHistoryViewController: UICollectionViewDelegate {
|
|||
func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool {
|
||||
return false
|
||||
}
|
||||
|
||||
#if os(visionOS)
|
||||
func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool {
|
||||
return false
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
extension StatusEditHistoryViewController: TuskerNavigationDelegate {
|
||||
|
|
|
@ -1339,6 +1339,12 @@ extension TimelineViewController: UICollectionViewDelegate {
|
|||
MenuPreviewHelper.willPerformPreviewAction(animator: animator, presenter: self)
|
||||
}
|
||||
|
||||
#if os(visionOS)
|
||||
func collectionView(_ collectionView: UICollectionView, shouldHighlightItemAt indexPath: IndexPath) -> Bool {
|
||||
return self.collectionView(collectionView, shouldSelectItemAt: indexPath)
|
||||
}
|
||||
#endif
|
||||
|
||||
func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
|
||||
if isShowingTimelineDescription {
|
||||
removeTimelineDescriptionCell()
|
||||
|
|
Loading…
Reference in New Issue