16

So code blocks in questions and answers on the android app (inline included) seem to be scared of me putting my finger in them.
When I poke them, they only move over two columns!

(For clarity, these are the code blocks that overlap the TextArea view because they've been eating too much)

The intended behaviour here is that when I press my finger into a code block, the touch event should register a drag; at current, I try to scroll inside a code block and I end up switching to question or answer view instead, over and over.

EDIT:

Something tells me this is status-bydesign because the text is deliberately cut off (probably inviting you to click on the code block and expand it; UX Decision?):

11
  • 10
    Leave those poor code blocks alone!!! Aug 6, 2013 at 18:59
  • 3
    So you've been poking code blocks, have you? I see.....have you been peeking as well?
    – Bart
    Aug 6, 2013 at 19:03
  • @Bart is that supposed to be a double entente with BASIC?
    – Cole Tobin
    Aug 6, 2013 at 19:05
  • 4
    Ah @ColeJohnson, the innocence of youth to even have to ask. ;)
    – Bart
    Aug 6, 2013 at 19:08
  • What phone are you using? Also, is this happening in the view you get after tapping on a code block to view it full screen? Aug 6, 2013 at 19:23
  • 2
    Will I get many upvotes if I start my question title with "Eeeeeek!"?
    – H2CO3
    Aug 6, 2013 at 19:23
  • 6
    Add freehand red circles, Unicorns, and mumble about oscillation, and you've hit the rep-cap right there @H2CO3.
    – Bart
    Aug 6, 2013 at 19:30
  • 1
    @Bart gimme a second. It's going to be magical.
    – Amelia
    Aug 6, 2013 at 19:31
  • @Bart Eeeeeeek, I didn't even think about that!
    – H2CO3
    Aug 6, 2013 at 19:33
  • 3
    @ColeJohnson WAT?
    – H2CO3
    Aug 6, 2013 at 19:33
  • 3
    The freehand circle definitely helped. I don't think it's a by-design thing so I'll take a look. Aug 6, 2013 at 19:53

1 Answer 1

4

Thanks for reporting this. Starting in version 0.1.5 those code blocks won't be scrollable at all unless tapped, which should be less confusing.

6
  • 7
    Please mention somewhere around the code block "Tap to expand" or something. It's not very intuitive.
    – Bibhas
    Aug 9, 2013 at 7:09
  • Bug not fixed. I'm using 0.1.50, and the same problem still exists - when tap-dragging at the code block the code block scrolls for a few pixels first, and then the tab switch is triggered. The tapping does cause the block to appear in it's own, scrollable popup, though. Oct 22, 2013 at 18:14
  • 1
    The described solution really seems like a bad UX solution. I would think the intuitive behaviour would be that the smaller element takes precedence, because you can always tap-drag outside it to trigger the tab switch. The expanded popup dedicated for the block is still good, though. Oct 22, 2013 at 18:17
  • Hi Kasra, sorry for commenting on the old post, but it seems since the change to use RecyclerView for question-and-answer, the code block now can be horizontally scrolled without the need to pop-up the code-block. Is this intended? (also, the indicator on the top-right is moving when horizontally scrolled). If it's not intended, then I'll post a bug report. Feb 13, 2015 at 18:14
  • It would be sad to have to pop open a code block (out of context) to scroll it. Then you mostly can't see the other code blocks and the intervening description text (literate programming style). The example in this Question has 3 code blocks. Not being able to see them together means you need to remember them when trying to read and analyze them.
    – Jerry101
    Feb 13, 2015 at 19:19
  • 1
    @AndrewT. authoritative answer here: meta.stackexchange.com/a/248524/229741 -- Consider this bug outdated Feb 13, 2015 at 19:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .