Closed Bug 304166 Opened 19 years ago Closed 3 years ago

Attachment drag issues in Message Compose window

Categories

(Thunderbird :: Message Compose Window, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mcow, Unassigned)

Details

(Keywords: polish)

TB has a moderately slick feature where an attachment (file or URL) dragged over 
the envelope will pop open the attachment bucket (hereafter, "attbkt") if it's 
not already shown.  This has a couple of few problems:

1) If the attachment is not actually dropped (drag cancelled or dropped 
elsewhere), the attbkt is not closed.  (Having an empty attbkt is not 
necessarily a terrible thing, but see bug 230904.)


2) If the dragged object is a mailto: URL, the attbkt is opened, despite the 
fact that if dropped, a mail address is added to the address list (in a broken 
form, but that's another bug).  The user presumably knows that it's an address 
being dragged, so the sudden appearance of the attbkt is confusing.


3a) If the dragged object is a mailto: URL, the attbkt (which may be validly 
open due an existing attachment) allows the drop, but passes it to to the 
address widget; it should show the No Drop icon.

3b) If the dragged object is an attachment, the address fields allow the drop; 
once the attbkt is open, the address fields should show the No Drop icon.

Items 3a & 3b are because it's a little confusing to drop an item in one 
location and have it appear in a different location.


4) The Attach toolbar button is also being used as a drop target.  This is 
pretty nonstandard and I don't think it's useful.
The obvious solution to item 1 would be to add this code in 
MsgComposeCommands.js:
  onDragExit: function (aEvent, aDragSession)
    {
+     if (!MessageHasAttachments())
+     {
+       ChangeAttachmentBucketVisibility(true);
+     }
    },

However, this causes UI flickering due to too many dragEnter/dragExit events 
being sent as the cursor moves across the field.
See also bug 291388, bug 291389.
QA Contact: message-compose
Assignee: mscott → nobody

resolved?

Flags: needinfo?(alessandro)

Indeed, fixed with the work done on bug 1640760.

Flags: needinfo?(alessandro)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.