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.
button
data-tauri-drag-region
1 parent 53ab204 commit 0797a00Copy full SHA for 0797a00
2 files changed
.changes/tauri-tap-drag-region-detection.md
@@ -0,0 +1,5 @@
1
+---
2
+'tauri': 'patch:bug'
3
4
+
5
+On macOS, fixed tapping on custom title bar doesn't maximize the window.
core/tauri/scripts/core.js
@@ -134,7 +134,7 @@
134
135
// drag region
136
document.addEventListener('mousedown', (e) => {
137
- if (e.target.hasAttribute('data-tauri-drag-region') && e.buttons === 1) {
+ if (e.target.hasAttribute('data-tauri-drag-region') && e.button === 0) {
138
// prevents text cursor
139
e.preventDefault()
140
// fix #2549: double click on drag region edge causes content to maximize without window sizing change
0 commit comments