code block cell selection still works

This commit is contained in:
Ryan Nystrom
2017-06-08 19:28:28 -04:00
parent 96c785f4d6
commit 5236a52689

View File

@@ -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)