Skip to content

Commit

Permalink
mousedown fix (#2108)
Browse files Browse the repository at this point in the history
quick mistake fix
  • Loading branch information
ameer2468 committed Feb 20, 2024
1 parent 9bc1a47 commit abd5ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/app/$libraryId/Explorer/View/Grid/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit abd5ecb

Please sign in to comment.