From 90282b3739f91b7edf059e7d31d8bec2a89d0c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 8 Feb 2024 15:03:02 +0200 Subject: [PATCH] Clear item tree pivot after switching collections. Closes #3551 After switching collections and shift-clicking on the item tree will no longer group-select from the pivot of the previous selection --- chrome/content/zotero/components/virtualized-table.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index ef73f382fb..f7b7dac7d0 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -127,6 +127,7 @@ class TreeSelection { clearSelection() { this.selected = new Set(); + this.pivot = 0; if (this.selectEventsSuppressed) return; if (this._tree.invalidate) {