From 66623b945ec25e02f3fee9fc8e8d634bc8ba364f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 22 May 2023 06:16:53 -0400 Subject: [PATCH] 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 --- chrome/content/zotero/zoteroPane.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 3caed93825..7379305756 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -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); };