From 3f77cc1ee6112238be68383db45df4d734b38da7 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 10 Mar 2026 14:39:01 -0300 Subject: [PATCH] fix: drag.js generated CSP regression from #15062 --- crates/tauri/src/window/scripts/drag.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/tauri/src/window/scripts/drag.js b/crates/tauri/src/window/scripts/drag.js index b22d46f20..2b533549a 100644 --- a/crates/tauri/src/window/scripts/drag.js +++ b/crates/tauri/src/window/scripts/drag.js @@ -32,9 +32,9 @@ // Otherwise return true. // // Supported values for data-tauri-drag-region: - // (bare / no value) → self: only direct clicks on this element trigger drag - // "deep" → deep: clicks anywhere in the subtree trigger drag - // "false" → disabled: drag is blocked here (and for ancestors) + // (bare / no value) -> self: only direct clicks on this element trigger drag + // "deep" -> deep: clicks anywhere in the subtree trigger drag + // "false" -> disabled: drag is blocked here (and for ancestors) function isDragRegion(composedPath) { for (const el of composedPath) { if (!(el instanceof HTMLElement)) continue @@ -53,7 +53,7 @@ if (attr === 'deep') return true // bare (or any unrecognized value): self-only if (el === composedPath[0]) return true - // click was on a child of a self-only region — stop walking, don't drag + // click was on a child of a self-only region - stop walking, don't drag return false } }