Opened 4 years ago
Last modified 4 years ago
#13963 new defect
arrow icon for the drop down menu does not disappear
Reported by: | clemens | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Component: | TracDragDropPlugin |
Severity: | trivial | Keywords: | patch |
Cc: | Trac Release: |
Description
The TracDragDropPlugin has a minor usability issue: The arrow icon for the drop down menu does not disappear if the mouse focus is left. I would expect that this arrow icon should disappear when the mouse leaves the attachment region.
I am talking about most recent TracDragDropPlugin version 0.12.0.15, revision r17646, 2020-01-07.
This is the arrow symbol which is driven by Javascript:
<div class="tracdragdrop-icon">▼</div>
I propose a tiny patch: attachment:tracdragdrop.js.diff.
Basically it registers a mouseleave
event which will hide the arrow icon.
Attachments (3)
Change History (7)
Changed 4 years ago by
Attachment: | tracdragdrop2.js.diff added |
---|
improved 2nd patch which upon mouse-leave does not hide the arrow symbol if the drop down menu is open
comment:1 Changed 4 years ago by
Some more testing reveals that my proposed first patch is not meaningful. It indeed hides the arrow symbol as promised, but unfortunately it renders the drop down menu unusable because it also hides drop down menu as soon as the mouse focus is left.
I have a second patch which will not hide anything as long as the drop down menu is open.
After all this whole issue is just minor usability and probably a matter of taste. It may not be worth to discuss about it ...
comment:2 Changed 4 years ago by
By mistake the previous second patch contained too much changes.
Here is a shorter third patch. As described earlier:
- It will register a
mouseleave
event which will hide the arrow icon if mouse leaves focus. - ... but not if the drop down menu is open.
I tested this. It works well with my TRAC 1.4.2. Without this patch the little arrow symbol will stay forever.
comment:3 follow-up: 4 Changed 4 years ago by
Severity: | minor → trivial |
---|
I don't think that is a defect. At least, I thought the behavior is reasonable and intentional during develop of the plugin.
Apart from that, the behavior which the icon doesn't appear when the mouse pointer is on left side of attachment list not useful, I think.
comment:4 Changed 4 years ago by
Replying to Jun Omae:
I would not claim that my patch is perfect and the only truth. This is just a minor usability issue. People often have different understanding of what is "right or wrong" with usability. And indeed, your are right, it is not a typical defect. With or without the patch the TracDragDropPlugin is very useful.
Jun, as the maintainer of the plugin it is your decision...