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)

All
Other
defect

Tracking

()

People

(Reporter: eric.m, Unassigned)

Details

(Keywords: testcase, Whiteboard: dupeme)

Attachments

(1 file)

Attached file testcase —
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.
Attachment #543789 - Attachment mime type: text/plain → text/html
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
> 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
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).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
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.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: