Open
Bug 669182
Opened 15 years ago
Updated 4 years ago
multi-select listbox: patchy selection when using ctrl + mouse
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
NEW
People
(Reporter: eric.m, Unassigned)
Details
(Keywords: testcase, Whiteboard: dupeme)
Attachments
(1 file)
|
1.69 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110615151330
Steps to reproduce:
1. Press ctrl-key.
2. Keep ctrl-key pressed and select multiple options by left clicking and dragging the mouse.
Nb:
a) The same selection without keeping the ctrl-key pressed works, regardless of the dragging speed.
b) The bug does not appear in IE.
Actual results:
If the selection is not done very slowly, the new selection will have gaps.
It is therefore not possible to select disparate ranges without paying close attention to the selection speed.
Expected results:
The new selection should not have any gaps when selecting via ctrl + mouse.
Updated•15 years ago
|
Attachment #543789 -
Attachment mime type: text/plain → text/html
Comment 1•15 years ago
|
||
Reproducible against Trunk and back to Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 ID:2008121709
=> must be an ancient Bug.
You're not supposed to get Ranges by this Workflow anyways (as other Browsers like Chrome/Opera show).
You rather can/should CTRL+Click the starting Entry and then SHIFT+Click the ending Entry to get a Selection Range.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Whiteboard: dupeme
Version: 5 Branch → Trunk
Comment 2•15 years ago
|
||
> You're not supposed to get Ranges by this Workflow anyways
Actually, you are. It's just that other browsers don't support multi-range selections, which is just broken (e.g. can't select a table column).
Component: Layout → Layout: Form Controls
QA Contact: layout → layout.form-controls
Comment 3•15 years ago
|
||
All major UAs support multiple ranges in <select> lists though.
Chrome/Safari only supports selection by clicking, not "drag-selection".
Opera has drag-selection, but only when NOT pressing a key (shift/ctrl).
IE9 supports drag-selection, also with shift/ctrl pressed, but ctrl
works a little differently than ours - it only affects the mouse-press,
the new range is added to the selection. Our behavior is to *toggle* the
selection state for items in the new range.
I'm guessing the bug here is that we don't receive motion events when
passing over some items. I think we can fix this by keeping track of
the mouse press state and act as if all items from the start item (of the
button-down event) to the item at the current mouse position is the
range to act on. Personally, I would prefer drag-selection to work
also when the mouse is outside the element (like IE do).
Comment 4•15 years ago
|
||
Also note what happens when you ctrl-drag-select a range and change
direction -- the item at the end remains selected. This seems like
a bug to me, independent of the other issues.
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•