fix(core): fix drag-region not sending its events correctly (#2196)

This commit is contained in:
FabianLars 2021-07-12 17:00:41 +02:00 committed by GitHub
parent bc2c331dec
commit 578610a29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Fixes `data-tauri-drag-region` not firing its events.

View File

@ -202,7 +202,12 @@ if (!String.prototype.startsWith) {
{
__tauriModule: 'Window',
message: {
cmd: e.detail === 2 ? 'toggleMaximize' : 'startDragging'
cmd: 'manage',
data: {
cmd: {
type: e.detail === 2 ? 'toggleMaximize' : 'startDragging'
}
}
}
},
_KEY_VALUE_