Bug 7153 - Text select-and-drag bug: Multi-line selection can result in dragging floating underlines...
Summary: Text select-and-drag bug: Multi-line selection can result in dragging floati...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P3 Normal
Assignee: Nobody
URL:
Keywords: HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2006-02-09 03:38 PST by Gregory Block
Modified: 2014-08-05 16:50 PDT (History)
6 users (show)

See Also:


Attachments
test case (503 bytes, text/html)
2006-02-11 12:38 PST, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gregory Block 2006-02-09 03:38:08 PST
Version: Nightly, r12668

This is *really* hard to describe; I'm doing my best here.  I'll post an example of what I'm reading so you can perform the action yourself and see what I mean.

Step 1:   Go to http://www.apache.org/
Step 2:   In the paragraph under "Farewell to Nicolas Chalumenau", select the entire first sentence - the entire first line, plus part of the second line which ends with "of October at the age of 27.".
Step 3:   Drag that text selection.

You should see the text you selected, as well as, off to the right, *just the underline* from the link that appears on that line. 

No idea what part this bug belongs to.  Filing as "new bugs" and hoping someone can triage.
Comment 1 Andre-John Mas 2006-02-11 08:48:31 PST
Tried this one out and it seems what makes the difference is how long you hold down the mouse button before starting the drag. If you drag immediatly the effect is a selection change, otherwise if you hold it down for a second or more before starting the drag, then the text block is dragged.

I tried the same behaviour test in TextEdit and Firefox and both start the object drag (as opposed to selection change), as soon as the mouse is down on the selected area and moved. In this regards Webkit provides inconsitent behaviour and I would consider this an issue.

This is also true in nightly 2006-02-11.
Comment 2 Alexey Proskuryakov 2006-02-11 11:41:59 PST
I can reproduce this with both 2.0.3 and ToT. Depending on the browser window width, more or less than one sentence may need to be selected.

I observe the behavior mentioned in comment 1 in TextEdit, as well, and I think it's a feature. There is some way to control the delay IIRC, it might affect your results. Anyway, I don't think it is related to this particular bug at all.
Comment 3 Alexey Proskuryakov 2006-02-11 12:38:36 PST
Created attachment 6415 [details]
test case
Comment 4 mitz 2009-06-13 17:17:36 PDT
<rdar://problem/6970268>
Comment 5 Alexey Proskuryakov 2014-08-05 16:50:43 PDT
This doesn't happen any more as of Safari 7.0.5, but probably only because we don't paint underlines in drag image at all! Which seems wrong.