mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Fix context menu closes on every third right-click. Resolve #5427
This commit is contained in:
parent
682722bc29
commit
a5cdd8d5aa
1 changed files with 2 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ Services.scriptloader.loadSubScript('chrome://zotero/content/elements/itemTreeMe
|
|||
e.stopPropagation();
|
||||
this.setAttribute("animate", "cancel");
|
||||
// Make the timeout slightly longer than the animation duration (180ms) in _menupopup.scss
|
||||
setTimeout(() => {
|
||||
this._fadeTimeout = setTimeout(() => {
|
||||
this.removeAttribute("animate");
|
||||
this.hidePopup();
|
||||
}, 200);
|
||||
|
|
@ -231,6 +231,7 @@ Services.scriptloader.loadSubScript('chrome://zotero/content/elements/itemTreeMe
|
|||
if (this !== e.target || this.parentNode?.closest("menupopup")) {
|
||||
return;
|
||||
}
|
||||
clearTimeout(this._fadeTimeout);
|
||||
this.setAttribute("aria-hidden", true);
|
||||
setTimeout(() => {
|
||||
this.removeAttribute("aria-hidden");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue