Skip to content

Commit 8488de6

Browse files
committed
Bugfix: After dragging window, focus was wrong
1 parent 8d71203 commit 8488de6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
/** Start window drag when title bar is clicked */
6464
async function handleTitleBarMouseDown(e: MouseEvent) {
6565
if (e.buttons === 1) {
66-
// Left mouse button
66+
e.preventDefault() // Prevent focus shift away from explorer
6767
try {
6868
const { getCurrentWindow } = await import('@tauri-apps/api/window')
6969
await getCurrentWindow().startDragging()

0 commit comments

Comments
 (0)