Open Bug 307663 Opened 19 years ago Updated 4 years ago

Click-and-drag from left half of the character following the selection drags the selection

Categories

(Core :: DOM: Selection, defect, P5)

defect

Tracking

()

People

(Reporter: softexpert, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050909 Firefox/1.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b4) Gecko/20050909 Firefox/1.4

You have an input area with some text in it. 
You select a portion of text, then click and drag right to the end of selection.
Normally the selected text should remove the highlight and there should be a new
selection, starting from the point of the click.
It doesn't happen - instead dragging will actually drag the previously selected
text to a new location - where you release the mouse.


Reproducible: Always

Steps to Reproduce:
1. Select some text in an input area
2. Position the mouse to the end of the selected text (like this:
selected|unselected - where | is the cursor)
3. Click and drag the cursor to the right
4. Relese the cursor several characters away

Actual Results:  
selected is dragged and dropped; the text in the input area becomes
unseleselectedcted

Expected Results:  
The text in the input area should become unselected|selected
where unselected is the text that was previously selected
and selected is the text that was previously unselected
I can confirm your described behavior with Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4 ID:2005090806.

However I am not sure this is not simply intended behavior. Only if the click
and drag "starting point" is nearer than 1 caracter to the previous selection,
Fx acts as if it were within the selection...
(In reply to comment #1)
> However I am not sure this is not simply intended behavior. Only if the click
> and drag "starting point" is nearer than 1 caracter to the previous selection,
> Fx acts as if it were within the selection...

I cannot say which was the intended behaviour (I am not a dev.), but to me it
does not seem to be logical: outside of selection is outside of selection;
"touching" outside end of selection should be outside of selection.
Assignee: nobody → selection
Component: General → Selection
Product: Firefox → Core
QA Contact: general
Version: unspecified → Trunk

*** This bug has been marked as a duplicate of 160818 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Actually, I don't think this is a duplicate. Bug 160818 talks generally about
the select-and-drag feature. This bug points out a specific problem with that
feature. I'm changing the summary to reflect this, and confirming the bug.
Status: RESOLVED → UNCONFIRMED
OS: Linux → All
Hardware: PC → All
Resolution: DUPLICATE → ---
Summary: Input area selection misbehaves when changing selection → Click-and-drag from left half of the character following the selection drags the selection
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 160818
Assignee: selection → nobody
QA Contact: selection
Blocks: 547936

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.