We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ae6f1 commit a0e2062Copy full SHA for a0e2062
2 files changed
.changes/tauri-drag-region-prevent-default.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Call `preventDefault()` in the mousedown event handler for `[data-tauri-drag-region]` elements.
core/tauri/scripts/core.js
@@ -134,6 +134,7 @@
134
// drag region
135
document.addEventListener('mousedown', (e) => {
136
if (e.target.hasAttribute('data-tauri-drag-region') && e.buttons === 1) {
137
+ e.preventDefault()
138
// start dragging if the element has a `tauri-drag-region` data attribute and maximize on double-clicking it
139
window.__TAURI_INVOKE__('tauri', {
140
__tauriModule: 'Window',
0 commit comments