Skip to content

Commit

Permalink
Disable drag & drop outside on Linux & Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocky43007 committed Feb 2, 2025
1 parent d4275ba commit 81c313c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/desktop/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ function useDragAndDrop() {
});

(async () => {
if (['linux', 'browser'].includes(await platform.getOs())) {
console.log('Skipping drag operation on Linux or Browser');
return;
}
if (dragState?.type === 'dragging' && dragState.items.length > 0) {
console.log('Starting drag operation with items:', dragState.items);

Expand Down

0 comments on commit 81c313c

Please sign in to comment.