From 97f8d942a054e6c24840a65473a42f0f4a5749df Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Wed, 23 Apr 2025 05:35:30 +0200 Subject: [PATCH] Keep item pane scroll position after refresh (#5214) --- chrome/content/zotero/elements/itemDetails.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/elements/itemDetails.js b/chrome/content/zotero/elements/itemDetails.js index d8321b6a3d..4580135d36 100644 --- a/chrome/content/zotero/elements/itemDetails.js +++ b/chrome/content/zotero/elements/itemDetails.js @@ -407,6 +407,8 @@ if (type == 'itempane') { this.renderCustomSections(); } + // Keep the scroll position after refresh + this._lastScrollTop = this._paneParent.scrollTop; await this.render(); }