mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-12 08:15:58 +08:00
code block cell selection still works
This commit is contained in:
@@ -34,6 +34,11 @@ final class IssueCommentCodeBlockCell: UICollectionViewCell, IGListBindable, Col
|
||||
contentView.backgroundColor = .white
|
||||
contentView.clipsToBounds = true
|
||||
|
||||
// make didSelectItem work for the cell
|
||||
// https://stackoverflow.com/a/24853578/940936
|
||||
scrollView.isUserInteractionEnabled = false
|
||||
contentView.addGestureRecognizer(scrollView.panGestureRecognizer)
|
||||
|
||||
scrollView.backgroundColor = Styles.Colors.Gray.lighter
|
||||
contentView.addSubview(scrollView)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user