Backwards selection leaves out last character in certain cases
https://bugs.webkit.org/show_bug.cgi?id=54434
Summary Backwards selection leaves out last character in certain cases
Roland Steiner
Reported 2011-02-14 21:44:49 PST
This effect is most easily seen in an editable field, since there is a caret for "bookkeeping": 1.) Enter 'UVWXYZ' (works with any string, just using this for reference purposes below) 2.) click on the right half of the W, right next to the center point 3.) without moving the mouse: notice the caret being painted to the right of the character and the mouse cursor, as expected 4.) drag to the left towards U - notice that W doesn't get selected after all HOWEVER: 2a) clicking "too far" right doesn't reproduce (the area where this happens is only a few pixels wide) 4a) clicking on the correct spot, but dragging even a little bit to the right before dragging left doesn't reproduce This behavior is IMHO aggravating inasmuch as that on a backwards drag selection there is a certain chance that the last character (the one clicked on) does not actually become selected and one has to redo the selection.
Attachments
Tony Chang
Comment 1 2011-02-15 10:33:04 PST
Evan fixed a similar selection bug for complex font glyphs. Roland, can you be specific as to what platform you're testing this on?
Roland Steiner
Comment 2 2011-02-15 17:32:05 PST
(In reply to comment #1) > Evan fixed a similar selection bug for complex font glyphs. Roland, can you be specific as to what platform you're testing this on? I tested it in Chrome on Mac and Windows.
Alexey Proskuryakov
Comment 3 2011-02-15 18:05:03 PST
Also reproducible in Safari (5.0.3 or ToT).
Evan Martin
Comment 4 2011-04-14 10:03:11 PDT
Ryosuke Niwa
Comment 5 2011-04-14 10:15:23 PDT
I can't reproduce this bug on Safari 5 or TOT on Mac.
Alexey Proskuryakov
Comment 6 2011-04-14 10:31:11 PDT
I can reproduce in Safari 5.0.4, but not in ToT.
Note You need to log in before you can comment on or make changes to this bug.