Temporary fix for context-menu options getting triggered on Windows
https://forums.zotero.org/discussion/105103/right-click-on-collections-or-items-not-functioning-properly-in-zotero-7
This commit is contained in:
parent
840a98ff40
commit
66623b945e
1 changed files with 8 additions and 0 deletions
|
@ -2789,6 +2789,10 @@ var ZoteroPane = new function()
|
|||
await ZoteroPane.buildCollectionContextMenu();
|
||||
x = x || event.clientX;
|
||||
y = y || event.clientY;
|
||||
// TEMP: Quick fix for https://forums.zotero.org/discussion/105103/
|
||||
if (Zotero.isWin) {
|
||||
x += 10;
|
||||
}
|
||||
openPopup(document.getElementById('zotero-collectionmenu'), x, y);
|
||||
};
|
||||
|
||||
|
@ -2800,6 +2804,10 @@ var ZoteroPane = new function()
|
|||
await ZoteroPane.buildItemContextMenu();
|
||||
x = x || event.clientX;
|
||||
y = y || event.clientY;
|
||||
// TEMP: Quick fix for https://forums.zotero.org/discussion/105103/
|
||||
if (Zotero.isWin) {
|
||||
x += 10;
|
||||
}
|
||||
openPopup(document.getElementById('zotero-itemmenu'), x, y);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue