NEW 12446
Double-clicking near the trailing edge of a word selects the space following it
https://bugs.webkit.org/show_bug.cgi?id=12446
Summary Double-clicking near the trailing edge of a word selects the space following it
mitz
Reported 2007-01-27 15:04:15 PST
Double-clicking in spaces and near the trailing edges of words makes the wrong selection. Any double-click inside a word, even near the edge, should select the word, and any double-click inside a space should select the space. In WebKit, clicking in the right hand side of the last letter of a word selects the following space, and clicking in the right hand side of the space selects the following word. NSTextView behaves as expected. Implementing the correct behavior in WebKit probably requires that the coordinate-to-offset functions return a secondary offset.
Attachments
Test case (213 bytes, text/html)
2007-01-27 15:07 PST, mitz
no flags
mitz
Comment 1 2007-01-27 15:07:29 PST
Created attachment 12718 [details] Test case
Alexey Proskuryakov
Comment 2 2010-03-18 16:58:51 PDT
*** Bug 36258 has been marked as a duplicate of this bug. ***
Ryosuke Niwa
Comment 3 2011-08-15 13:52:30 PDT
I've looked into it, but this is a tricky bug to fix. We'd have to get extra information out of positionForPoint to determine to which side the point belongs, and we'd have to pass that information to setStartAndEndFromBaseAndExtentRespectingGranularity to adjust EWordSide appropriately.
Note You need to log in before you can comment on or make changes to this bug.