fix: keep emoji selection visible during keyboard navigation
This commit is contained in:
@@ -147,7 +147,7 @@ final class EmojiPickerController: NSViewController, NSCollectionViewDataSource,
|
||||
selected = min(max(selected + offset, 0), results.count - 1)
|
||||
(collection.item(at: indexPath(for: old)) as? EmojiItem)?.highlight(false)
|
||||
updateSelection()
|
||||
collection.scrollToItems(at: [indexPath(for: selected)], scrollPosition: .nearestVerticalEdge)
|
||||
collection.scrollToItems(at: [indexPath(for: selected)], scrollPosition: .nearestHorizontalEdge)
|
||||
}
|
||||
|
||||
private var columns: Int { max(1, Int((collection.bounds.width - 32 + 6) / 70)) }
|
||||
|
||||
Reference in New Issue
Block a user