Use native context menus on macOS
This commit is contained in:
parent
1740e5f1aa
commit
3443d065a3
1 changed files with 2 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue