Bug 14728 - Word selection when right-clicking or double clicking can be very confusing
Summary: Word selection when right-clicking or double clicking can be very confusing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac All
: P2 Normal
Assignee: Nobody
URL: http://webkit.org/
Keywords: InRadar
: 14739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-23 11:46 PDT by Adam Roben (:aroben)
Modified: 2007-07-23 23:16 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2007-07-23 11:46:19 PDT
r24499 <http://trac.webkit.org/projects/webkit/changeset/24499> re-introduced behavior to select the nearest word when right-clicking. However, this behavior can often be very confusing. For example:

1. Go to http://webkit.org/
2. Resize the window so that you can see to the right of the Download button
3. Right-click to the right of the Download button

The word "The" in the heading of the page ("The WebKit Open Source Project") gets selected. This is very far away from the mouse.

You can also end up with only whitespace getting selected, e.g. if you click just to the right of the sentence "If you have more questions, contact us."
Comment 1 Adam Roben (:aroben) 2007-07-23 11:46:56 PDT
<rdar://problem/5354455>
Comment 2 Justin Garcia 2007-07-23 14:41:45 PDT
Happens on double-click too.  It's probably the positionForPoint is buggy in that open space.
Comment 3 Justin Garcia 2007-07-23 19:48:09 PDT
*** Bug 14739 has been marked as a duplicate of this bug. ***
Comment 4 Justin Garcia 2007-07-23 19:55:52 PDT
I'm going to turn off word selection for non-editable content unless the mouse is over text.
Comment 5 David Kilzer (:ddkilzer) 2007-07-23 23:16:49 PDT
Fixed in r24561.