Open Bug 547936 Opened 15 years ago Updated 5 years ago

Drag and Drop of single character doesn't work

Categories

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

x86_64
Windows 7
defect

Tracking

()

People

(Reporter: mozilla, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: testcase)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.2pre) Gecko/20100217 Namoroka/3.6.2pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.2pre) Gecko/20100217 Namoroka/3.6.2pre The user can mark a paragraph, sentence or part of a word and then drag and drop it to another location. This doesn't work when only a single character is selected. Clicking and holding on it just removes the selection. It may seem unneccessary to drag&drop and single character but when copying foreign characters, japanese or chinese for example, it is useful. Also of course keyboard-shortcuts could be used, but for many users mouse is easier to remember and since the drag&drop is there anyway it should work with single characters as well. Reproducible: Always Steps to Reproduce: 1. Select a single character on a website 2. Try to drag & drop it Actual Results: The selection gets removed. Expected Results: Being able to drag and drop the selected character.
Interestingly bug 307633 comes to the rescue here - I can drag a single character but only from the left half of the following one!
Component: General → Selection
Product: Firefox → Core
QA Contact: general → selection
(In reply to comment #1) > Interestingly bug 307633 comes to the rescue here - I can drag a single > character but only from the left half of the following one! bug 307663
This is probably same as bug 307663 as you can't drag from the left half of the first character in a selection but can drag from left half of character after the last one.
Seems likely, yeah. This worksforme on mac, for what it's worth.
Depends on: 307663
1. Go to data:text/html,<title></title><p style="font-size: 200px">&#x25eb;&#x25e8;&#x25e7;</p> 2. Highlight middle character 3. Attempts to drag only work for right half of highlighted character and left half of last character (Approximately the black rectangles)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Version: unspecified → Trunk
Interestingly it depends on the character's size how far to the left on the selection you have to start dragging for it to work. Try data:text/html,<title></title><p style="font-size:20px">&#x25eb;&#x25e8;&#x25e7;</p> You can't click anywhere in the left half (black box) of the middle character as it was possible with font-sizes like 200px.

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

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

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