@@ -0,0 +1,5 @@
+---
+"tauri": patch
+
+Call `preventDefault()` in the mousedown event handler for `[data-tauri-drag-region]` elements.
@@ -134,6 +134,7 @@
// drag region
document.addEventListener('mousedown', (e) => {
if (e.target.hasAttribute('data-tauri-drag-region') && e.buttons === 1) {
+ e.preventDefault()
// start dragging if the element has a `tauri-drag-region` data attribute and maximize on double-clicking it
window.__TAURI_INVOKE__('tauri', {
__tauriModule: 'Window',