|
@@ -136,6 +136,10 @@
|
|
|
if (e.target.hasAttribute('data-tauri-drag-region') && e.buttons === 1) {
|
|
|
// prevents text cursor
|
|
|
e.preventDefault()
|
|
|
+ // fix #2549: double click on drag region edge causes content to maximize without window sizing change
|
|
|
+ // https://github.com/tauri-apps/tauri/issues/2549#issuecomment-1250036908
|
|
|
+ e.stopImmediatePropagation()
|
|
|
+
|
|
|
// start dragging if the element has a `tauri-drag-region` data attribute and maximize on double-clicking it
|
|
|
window.__TAURI_INVOKE__('tauri', {
|
|
|
__tauriModule: 'Window',
|