1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Select-to-Quote Weirdness When Ending on Blank Line

Discussion in 'Resolved Bug Reports' started by pegasus, Jul 30, 2014.

  1. pegasus

    pegasus Well-Known Member

    When a post contains multiple lines,

    like so, with double line-breaks between,

    the control for the Quote function may appear in an unexpected location.

    Although not in this image, it is particularly unexpected when an image is above the selection
    Highlight this and the following empty line to see.

    Small tweak.

    Also when highlighting this (final) line so that the full width is selected (drag to the next line), then no control appears at all.
    Karelke and Liam W like this.
  2. Liam W

    Liam W Well-Known Member

    I saw this on my phone, I thought it was just a strange thing with the way things highlight.

    Apparently not.
  3. Mike

    Mike XenForo Developer Staff Member

    Just to comment that this isn't really unexpected. The selection is probably including something outside of the message itself and thus not considered valid. Probably unlikely to change but would need more analysis.
  4. Karelke

    Karelke Active Member

    Or try triple clicking on a piece of text.

    Screenshot from 2014-07-30 15:00:43.png
    pegasus likes this.
  5. pegasus

    pegasus Well-Known Member

    I suspect the same fix for the new-line issue would fix triple-click, as the selections appear very similar.

    @Mike, also note that triple-click on the final line/paragraph results in the final-line behavior I described, and is not human-expected to highlight anything "outside" the original message. Yet it still yields no quote-control.
  6. Karelke

    Karelke Active Member

    I'm using the latest Chrome version (36), working on Ubuntu 14.04.
  7. Mike

    Mike XenForo Developer Staff Member

    A fix for this is being rolled out now.

    This is one of the tricky cases comparing what a human sees vs the browser doing. It's actually selecting down to the beginning of the next visible line (the cursor is at the next line). Depending on the markup, this could be an edit note, a signature, or the "private controls row". I don't know if much would be done to change this as it changes quite a lot in the code.
  8. pegasus

    pegasus Well-Known Member

    Looks good.

Share This Page