Closed Bug 101958 Opened 23 years ago Closed 23 years ago

outliner drag-n-drop without changing columns sorts on that column

Categories

(Core :: XUL, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla0.9.7

People

(Reporter: deanis74, Assigned: hewitt)

Details

Attachments

(1 file)

Steps to reproduce:

1. In the message pane of Mail & News, start dragging the Subject column header
around.
2. Drag it back and forth, but don't let go of the mouse button.
3. Drag it back to its original position.
4. Let go of the mouse button.

Expected Results: Drag is canceled and nothing else happens.

Actual Results: Drag is canceled and the list is sorted by the Subject column.

This is getting treated as a click, probably because there's a mouse down on the
column header followed eventually by a mouse up.  If there's a drag of the
header in between there, that click event should be eaten.
Build is 2001092703 on Win2K.
OS: Windows 2000 → All
Hardware: PC → All
I'm also seeing this on MacOS using build 2001092804.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla0.9.7
Attached patch patchSplinter Review
This patch cancels the click event after a drag operation.
Comment on attachment 58677 [details] [diff] [review]
patch

sr=blake if you remove the you-know-what-ism that we discussed
Attachment #58677 - Flags: superreview+
Comment on attachment 58677 [details] [diff] [review]
patch

r=jag if you change the you-know-what-ism blake already pointed out, flip a bit
and fix the indentation on that whatchamacallit.
Attachment #58677 - Flags: review+
hmm, just when I wanted to comment :)
well I was asked for review too, so adding my comments

Looks good only some nits:

var bx =
col.parentNode.boxObject.QueryInterface(Components.interfaces.nsIOutlinerBoxObject)

don't we have |.outlinerBoxObject| property ?

I don't like timers, but if there's no other way ...

r=varga
good point, Jan, that was pretty dumb.

fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 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: