mousedown fix (#2108)

quick mistake fix
This commit is contained in:
ameer2468 2024-02-20 13:05:53 +03:00 committed by GitHub
parent 9bc1a472a8
commit abd5ecbe8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,8 +50,8 @@ export const GridItem = ({ children, item, index, ...props }: Props) => {
// Prevent explorer view onMouseDown event from
// being executed and resetting the selection
onMouseDown={(e) => {
if (os === 'browser') return;
e.stopPropagation();
if (os === 'browser') return;
if (e.buttons === 8 || e.buttons === 3) {
if (!canGoBack) return;
navigate(-1);