Limit the force-click during drag fix to macOS (4fb0661b)

This commit is contained in:
Adomas Venčkauskas 2022-06-15 09:08:30 +03:00
parent 6f3f5d2ea8
commit 43c86c0e58

View file

@ -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;
}