From 3ff650f046f4e03d0070b683e8ef62ab5a1034fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 15 Jun 2022 09:08:30 +0300 Subject: [PATCH] Limit the force-click during drag fix to macOS (4fb0661b) --- chrome/content/zotero/components/virtualized-table.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index 841baf2422..9023e82aa3 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -669,7 +669,9 @@ class VirtualizedTable extends React.Component { // causing a collection change on dragend, so we add a delay here. It shouldn't cause any issues // because isMouseDrag is only used in mouseup handler to exactly prevent from accidentally switching // selection after dragend. - await Zotero.Promise.delay(500); + if (Zotero.isMac) { + await Zotero.Promise.delay(500); + } this._isMouseDrag = false; }