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 } }