Closed Bug 130477 Opened 23 years ago Closed 21 years ago

Double-click on last file in filepicker window opens 2nd file past target file

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: lists, Assigned: neil)

References

()

Details

(Whiteboard: [adt3])

Attachments

(1 file, 1 obsolete file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9+) Gecko/20020311 BuildID: 2002031121 Double-clicking on the last file in a filepicker list has the following results: 1) the window scrolls down one against the file list. The target file is highlighted and becomes the 2nd-last file in the window. 2) the file following the now-last file in the window (i.e. 2nd file following the target file) is actually selected by the double-click action. Reproducible: Always Steps to Reproduce: 1.When the default directory has 11 or more files, Ctrl-O 2.Double-click on the last visible file in the window 3. Actual Results: The 2nd file past the targeted file is selected Expected Results: The targeted file is selected Double-click acts as though it is divided into three steps: 1. Single click selects last file and promotes its position in the filepicker window 2. Single click over last slot in the window selects the now-last file and promotes its position in the window 3. Double click selects the now-last file in the window
The problem is an outliner that shows only part of the last visible entry and scrolls by a full entry up to bring it into view if that top half is clicked on. Is there a way to disable this "scroll it into view" behavior?
Assignee: jaggernaut → bryner
Status: UNCONFIRMED → NEW
Ever confirmed: true
One of problems here is that doubleclick is preceeded by mousedown and click event. I'm not sure if it's a bug. We call ensureRowIsVisible(index) in mousedown and click. click would be sufficient I think.
It's a bug. Yes, I can click to select a file, then click Open. But it is a standard idiom to take a shortcut to that point by double-clicking, and it's a standard idiom that mozilla supports, except that it gets the wrong file.
This bug also afflicts the filepicker when selecting a file to attach. Double-clicking on the last file shown will attach a file not even visible in the window at the time. This has potentially disastrous consequences.
*** Bug 148017 has been marked as a duplicate of this bug. ***
-> me
Assignee: bryner → varga
Nominating for buffy. This bug is annoying.
Keywords: nsbeta1
Nav triage team: nsbeta1+/adt3
Keywords: nsbeta1nsbeta1+
Whiteboard: [adt3]
*** Bug 162636 has been marked as a duplicate of this bug. ***
*** Bug 184302 has been marked as a duplicate of this bug. ***
One my friend has complained about this bug so many times, that I decided to make at least some kind of patch.
Attachment #109456 - Flags: review?(varga)
Nav triage team: nsbeta1-
Keywords: nsbeta1+nsbeta1-
Reviews? Varga? The fix is simple and it is working fine. And the severity of this bug is 'major'.
Flags: blocking1.3b?
Flags: blocking1.3b? → blocking1.3b-
Comment on attachment 109456 [details] [diff] [review] One suggestion to solve the problem ok, I don't like this patch, since it doesn't solve original problem in general. It just disables particular feature in file picker.
Attachment #109456 - Flags: review?(varga) → review-
Depends on: 167682
Hmmm... I tried the approach in bug 167682 (which is probably a dup, rather than a blocker) but unfortunately clickcount="1" isn't terribly reliable :-/
*** Bug 167682 has been marked as a duplicate of this bug. ***
Assignee: varga → neil.parkwaycc.co.uk
Attachment #109456 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #149268 - Flags: review?(varga)
Comment on attachment 149268 [details] [diff] [review] Only change the selection on the first of a double click r=varga
Attachment #149268 - Flags: review?(varga) → review+
Attachment #149268 - Flags: superreview?(alecf)
Comment on attachment 149268 [details] [diff] [review] Only change the selection on the first of a double click Add a comment on this last line: + if (!col.value.cycler && obj.value != "twisty") + v.toggleOpenState(row); perhaps something like "don't toggle twisty's on double-click" ? sr=alecf with some comment there
Attachment #149268 - Flags: superreview?(alecf) → superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: