Use native context menus on macOS

This commit is contained in:
Abe Jellinek 2023-07-06 13:52:42 -04:00 committed by Dan Stillman
parent 1740e5f1aa
commit 3443d065a3

View file

@ -867,12 +867,8 @@ class ReaderInstance {
};
appendItems(popup, itemGroups);
let rect = this._iframe.getBoundingClientRect();
x += rect.left;
y += rect.top;
if (Zotero.rtl) {
x *= -1;
}
setTimeout(() => popup.openPopup(null, 'before_start', x, y, true));
rect = this._window.windowUtils.toScreenRectInCSSUnits(rect.x + x, rect.y + y, 0, 0);
setTimeout(() => popup.openPopupAtScreen(rect.x, rect.y, true));
}
_updateSecondViewState() {