Githawk: Expand cell button no working on table cells

Created on 13 Aug 2018  路  11Comments  路  Source: GitHawkApp/GitHawk

I can鈥檛 seem to click the expand comment cell (blue button with 3 dots)


Bug Report Dump (Auto-generated)

Version 1.22.0 (1534118943)
Device: iPhone 6s (iOS 11.4.1)
TestFlight: true

馃悰 bug low priority

Most helpful comment

Like a fine wine 馃嵎

All 11 comments

Is this just me? GitHawk Upload by Huddie

Sent with GitHawk

Hmm nope doesn't work for me either, I'll try to fix really quick

So this is b/c of the nested UIScrollView underneath. Classic problem where it eats the touches and disables cell selection.

Going to low-pri this for now.

I can't reproduce this in commit 966cb1a4d1238bc2e92a42afbaacd3b6ba497d6e dated 27 Sep 2018 on master

Xcode Version 10.0 (10A254a)
Simulator iPhone XR iOS 12

It鈥檚 def a bug that was happening, but I haven鈥檛 tried iOS 12. Maybe it鈥檒l sort itself out?

Sent with GitHawk

Like a fine wine 馃嵎

@rnystrom Haven鈥檛 seen this is a bit. Chalk it up to iOS 12 and close?

Sent with GitHawk

Nah it鈥檚 still an issue

Sent with GitHawk

Haha is it a hard fix? If you have an idea what鈥檚 necessary I can take a look

Sent with GitHawk

@Huddie see comment above: tables have a UICollectionView (scroll view) in them which eats the touch event required to call UICollectionViewDelegate.didSelectCellAtIndexPath(:).

Some options:

  • Add a UITapGestureRecognizer to the table cell, create a IssueCommentTableCellDelegate, and forward the event
  • Go deep and on UITouch and UIScrollView and UICollectionView to find a fix

    • There may be some combo of touchesBegan(:) and its sibling methods to make it work

    • Or maybe there's an override to gestureShouldBegin() or w/e the method is to make it work

  • Update IssueCommentBaseCell and its delegate so it has a single tap (already has double tap). Extend the delegate w/ a new tap method

    • Remove cell expansion from cell selection

    • This is probably the best option!

Would be a huge help!

@rnystrom I鈥檒l play around 馃懢

Sent with GitHawk

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jessesquires picture jessesquires  路  3Comments

rnystrom picture rnystrom  路  3Comments

rnystrom picture rnystrom  路  3Comments

rnystrom picture rnystrom  路  3Comments

Iron-Ham picture Iron-Ham  路  3Comments