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)
Tracking
()
RESOLVED
FIXED
People
(Reporter: lists, Assigned: neil)
References
()
Details
(Whiteboard: [adt3])
Attachments
(1 file, 1 obsolete file)
|
1.98 KB,
patch
|
janv
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
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
Comment 1•23 years ago
|
||
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
Comment 2•23 years ago
|
||
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.
| Reporter | ||
Comment 3•23 years ago
|
||
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.
| Reporter | ||
Comment 4•23 years ago
|
||
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.
Comment 5•23 years ago
|
||
*** Bug 148017 has been marked as a duplicate of this bug. ***
Comment 8•23 years ago
|
||
Nav triage team: nsbeta1+/adt3
Comment 9•23 years ago
|
||
*** Bug 162636 has been marked as a duplicate of this bug. ***
Comment 10•22 years ago
|
||
*** Bug 184302 has been marked as a duplicate of this bug. ***
Comment 11•22 years ago
|
||
One my friend has complained about this bug so many times, that
I decided to make at least some kind of patch.
Updated•22 years ago
|
Attachment #109456 -
Flags: review?(varga)
Comment 13•22 years ago
|
||
Reviews?
Varga?
The fix is simple and it is working fine.
And the severity of this bug is 'major'.
Updated•22 years ago
|
Flags: blocking1.3b?
Updated•22 years ago
|
Flags: blocking1.3b? → blocking1.3b-
Comment 14•22 years ago
|
||
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-
| Assignee | ||
Comment 15•21 years ago
|
||
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 :-/
Comment 16•21 years ago
|
||
*** Bug 167682 has been marked as a duplicate of this bug. ***
Comment 17•21 years ago
|
||
| Assignee | ||
Comment 18•21 years ago
|
||
Assignee: varga → neil.parkwaycc.co.uk
Attachment #109456 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
| Assignee | ||
Updated•21 years ago
|
Attachment #149268 -
Flags: review?(varga)
Comment 19•21 years ago
|
||
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+
| Assignee | ||
Updated•21 years ago
|
Attachment #149268 -
Flags: superreview?(alecf)
Comment 20•21 years ago
|
||
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+
| Assignee | ||
Comment 21•21 years ago
|
||
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.
Description
•