From 43c86c0e58872c1af6dd5bf0dafd20b642eafc6c 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 fc07b3d5c4..a2eff08e6e 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -665,7 +665,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; }