Skip to content

Commit 578610a

Browse files
authored
fix(core): fix drag-region not sending its events correctly (#2196)
1 parent bc2c331 commit 578610a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Fixes `data-tauri-drag-region` not firing its events.

core/tauri/scripts/core.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,12 @@ if (!String.prototype.startsWith) {
202202
{
203203
__tauriModule: 'Window',
204204
message: {
205-
cmd: e.detail === 2 ? 'toggleMaximize' : 'startDragging'
205+
cmd: 'manage',
206+
data: {
207+
cmd: {
208+
type: e.detail === 2 ? 'toggleMaximize' : 'startDragging'
209+
}
210+
}
206211
}
207212
},
208213
_KEY_VALUE_

0 commit comments

Comments
 (0)